Jump to content

_Security__LookupAccountSid not working on windows 10?


kosamja
 Share

Recommended Posts

Is _Security__LookupAccountSid not working on Windows 10 or I dont know how to use it? I tried this example on windows 10 64 bit (default settings) and it always shows error.

#NoTrayIcon
#RequireAdmin
#include <Security.au3>
#include <SecurityConstants.au3>

Local $aArrayOfData = _Security__LookupAccountSid('S-1-5-21-2516510968-2904199960-1983233263-500')

; Print returned data if no error occured
If IsArray($aArrayOfData) Then
    MsgBox(0,'',"Account name = " & $aArrayOfData[0] & @CRLF)
    ConsoleWrite("Domain name = " & $aArrayOfData[1] & @CRLF)
    ConsoleWrite("SID type = " & _Security__SidTypeStr($aArrayOfData[2]) & @CRLF)
 Else
    MsgBox(0,'','error')
EndIf

 

Edited by kosamja
Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...