Retrieving Trustee Type
Anyone familiar with retrieving the trustee type using WSH? I'm gathering permission data on files and folders and need to differentiate between User and Group.
Any assistance is greatly appreciated.
Web Development
Anyone familiar with retrieving the trustee type using WSH? I'm gathering permission data on files and folders and need to differentiate between User and Group.
Any assistance is greatly appreciated.
by jwildwind
Here's a way to determine User or Group
IDstring is a value you enter or extract
Set Obj = GetObject("WinNT://" & IDstring
Select Case Obj.class
Case "User"
'do whatever User thing you need to do
Case "Group"
'do whatever Group thing you need to do
End Select
by lbischofs
Wow... that was almost too easy...
Thanks for you help.
by lbischofs
This discussion is closed to new replies.
Sort by Trending