Converts a String SID to a binary SID
#include <Security.au3> _Security__StringSidToSid ( $sSID )
_Security__SidToStringSid
Search ConvertStringSidToSid in MSDN Library.
#include <Security.au3> #include <SecurityConstants.au3> Local $tSID = _Security__StringSidToSid($SID_ADMINISTRATORS) If Not @error Then ; $tSID is structure filled with SID data for spesified string form SID ; ... The rest of the script here... EndIf