|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
SID to Users
I'm trying to use this script to resolve user ID's from Sid's strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set objAccount = objWMIService.Get _ ("Win32_SID.SID='S-1-5-18...........") Wscript.Echo objAccount.AccountName Wscript.Echo objAccount.ReferencedDomainName However i want to introduce a "strsid = inputbox("Enter User SID")" and then use something like "Set objAccount = objWMIService.Get _ ("Win32_SID.SID=strsid") but this doesn't work, what do i need to tweak so i can use the variable rather than specific text in the script? Thanks! |
|||||||||||||||||||||||