Hello,
Please advise on the following issue:
In the installer, I have added an "Edit Fields" screen in which I want the user to enter the Administrator username, password and domain (if the user is a domain admin).
What I would like to do is validate whether the admin username that was introduced is part of the Windows Administrators group or not.
Is there a way to do this?
I know that I can get the user's SID and check that the username exists on the system, but I want to check if that username is an actual Administrator.
Another solution that I was thinking about is to integrate a Powershell code that verifies this. Is there a way to integrate and run a powershell code at run-time, like when pressing Next ?
Thank you,
Cosmin
Please advise on the following issue:
In the installer, I have added an "Edit Fields" screen in which I want the user to enter the Administrator username, password and domain (if the user is a domain admin).
What I would like to do is validate whether the admin username that was introduced is part of the Windows Administrators group or not.
Is there a way to do this?
I know that I can get the user's SID and check that the username exists on the system, but I want to check if that username is an actual Administrator.
Another solution that I was thinking about is to integrate a Powershell code that verifies this. Is there a way to integrate and run a powershell code at run-time, like when pressing Next ?
Thank you,
Cosmin
Comment