Re: WildCard - [WP]
- From: Ayush <"ayushmaan.j[aatt]gmail.com">
- Date: Sat, 31 Mar 2007 15:17:22 -0600
[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
.
- Next by Date: Re: force a script to resume before it is ready
- Next by thread: Re: force a script to resume before it is ready
- Index(es):