Discussion Locked

Retrieving Trustee Type

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

3 replies

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

This discussion is closed to new replies.