
Checking NT Group Membership
I have a Windows NT Domain using WSH (
VBScript) as a logon script for my
Windows NT Workstation clients. I am trying to check a User for Group
membership but the script is halting on the following line with the message,
Incorrect Syntax....
Set ObjUsr = GetObject("WinNT://domain_name/" & strUserName & ",user")
The User's name is passed as the strUserName variable. Interestingly the
script runs fine with a Windows 2000 client. If this line of script is not
compatible with NT clients can someone give me an alternative.
Any help gratefully appreciated.
David Johnson