Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need help with Jscript

0 views
Skip to first unread message

d.c.s...@usa.net

unread,
Oct 20, 1999, 3:00:00 AM10/20/99
to
I am converting a large number of users to NT Workstation 4.0 (SP4)
from Windows 95. I need to convert all Kix32 scripts to WSU using
Jscript.

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.

0 new messages