Checking NT Group Membership 
Author Message
 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



Sat, 01 Nov 2003 18:02:23 GMT  
 Checking NT Group Membership
You need to install ADSI on the NT clients...

Active Directory Services Interfaces 2.5
http://www.microsoft.com/ntserver/nts/downloads/other/ADSI25/default.asp

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--


Quote:
> 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



Sun, 02 Nov 2003 10:29:06 GMT  
 Checking NT Group Membership
Many thanks for that, working now.

Thank you
David


Quote:
> You need to install ADSI on the NT clients...

> Active Directory Services Interfaces 2.5
> http://www.microsoft.com/ntserver/nts/downloads/other/ADSI25/default.asp

> --
> Michael Harris
> Microsoft.MVP.Scripting
> --

> Please do not email questions - post them to the newsgroup instead.
> --



> > 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



Sun, 02 Nov 2003 16:58:08 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Checking NT Group Membership

2. VBScript NT Login Script - checking for group membership

3. error when checking for NT group membership

4. Checking for NT Domain Group Membership

5. How to check a user's NT group membership

6. Domain Integration - Checking Group Membership

7. Checking Group Membership

8. Use ADSI to Check a Group for Membership

9. ? How to check user group membership

10. Checking Group membership from low-security user accounts.

11. Checking Group Membership for a Computer

12. Checking for Group membership

 

 
Powered by phpBB® Forum Software