Re: WildCard - [WP]

Tech-Archive recommends: Speed Up your PC by fixing your registry



[Ayush]s message :
How can we do the same or enter a wildcard for SIDs?

Function GetSID(uName)
Dim wmi,accounts
Set wmi = GetObject("winmgmts:\\.\root\cimv2")
> ....
End Function

OR

Function GetSID(user)
GetSID=CreateObject("Shell.Users")(user).setting("SID")
End Function

Example:
msgbox GetSID("Administrator")

Good Luck, Ayush.
--
Scripting- your first steps : http://www.microsoft.com/technet/scriptcenter/topics/beginner/firststeps.mspx
.