The problem I have is trying to identify which global group the user
account belongs to. I need to map certain servers and shares depending
on the NT global group.
I have been reading through most of the posts in various groups and
the best I've come up with is the code below. The problem is that it
returns all the login accounts in the domain. It errors out if I add
the login id to the GetObject command:
None of the filters seem to work.
var domainObj = GetObject("WinNT://NMC");
// None of the following lines filters anything !
// domainObj.Filter = Array("User");
// domainObj.Filter = new Array("User");
// domainObj.Filter = VBArray("User");
var u;
for(var e=new Enumerator(domainObj); !e.atEnd(); e.moveNext()) {
u = e.item();
WScript.Echo(u.Name + " (" + u.Class + ")");
}
Thanks in advance.
If you wish to email me, please remove NOSPAM from my email address.
John.