Hi all. How can I get current user type? I want to get is user administrator or is standard user. I can't use the IsAdmin() function because if uac is active, this returns negative value. I've searched but I haven't found.
Thank you in advance.
Something like this maybe:
$oMyError = ObjEvent("AutoIt.Error", "ComError")
If UserInGroup(@LogonDomain,@UserName,"Administrators") then
msgbox(0,"Validate","User exists in specified groupname")
Else
msgbox(0,"Validate","User does NOT exist in specified groupname")
EndIf
Exit
; Check if User is in a group
Func UserInGroup($Domain, $UserName, $InGroup)
Local $objUser = ObjGet("WinNT://" & $Domain & "/" & $UserName)
For $oGroup in $objUser.Groups
If $oGroup.Name = $InGroup Th