Gibt den Namen des Kontos für eine SID zurück
#include <Security.au3>
_Security__LookupAccountSid ( $vSID [, $sSystem = ""] )
| $vSID | Entweder eine binäre SID oder eine String-SID |
| $sSystem | [optional] Der Name eines Remote-Computers. Standardmäßig das lokale System. |
| Erfolg: | Ein Array mit dem folgenden Format: $aAcct[0] - Kontoname $aAcct[1] - Domainname $aAcct[2] - SID-Typ |
| Fehler: | Setzt das @error Flag auf ungleich 0. |
_Security__GetAccountSid, _Security__LookupAccountName
Suche nach LookupAccountSid in der MSDN Bibliothek.
#include <Security.au3>
Local $aArrayOfData = _Security__LookupAccountSid($SID_ALL_SERVICES)
; SID Daten ausgeben, sollte es keinen Error geben:
If IsArray($aArrayOfData) Then
ConsoleWrite("Account Name = " & $aArrayOfData[0] & @CRLF)
ConsoleWrite("Domain Name = " & $aArrayOfData[1] & @CRLF)
ConsoleWrite("SID Typ = " & _Security__SidTypeStr($aArrayOfData[2]) & @CRLF)
EndIf