This script displays your SID and copies it to your clipboard:
strComputer = "."You may need to change the values for the user account name and the domain.
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set objAccount = objWMIService.Get _
("Win32_UserAccount.Name='Administrator',Domain='corp'")
Wscript.Echo objAccount.SID
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "cmd.exe /c echo " + objAccount.SID + " | clip", 0, TRUE
Wscript.Echo "Your SID is copied to the clipboard"
And this is the script you can use in the database:
update userinfo
set
networkdomain = 'YourDomain',
networkalias = 'YourAlias',
SID = 'YourSID'
where ID = 'Admin'
*This post is locked for comments