The Script Library
Menu
The Script Library
Browse
Search
Submit
Reference
About
Contact

Link to Us
Index
Display

Home VBScript Other Directory Services ADAM




Add a User to an ADAM Group

 

Description
Adds the user Kenmyer to an ADAM group named Accountants.

 

Author/Submitter
Microsoft Scripting Guys

 

Supported Platforms

Windows Server 2003

Yes

Windows XP

Yes

Windows 2000

No

Windows NT 4.0

No

Windows 98

No



 

VBScript Code


On Error Resume Next Set objGroup = GetObject _ ("LDAP://localhost:389/cn=Accountants,ou=Accounting,dc=fabrikam,dc=com") Set objUser = GetObject _ ("LDAP://localhost:389/cn=kenmyer,ou=Accounting,dc=fabrikam,dc=com") objGroup.Add objUser.AdsPath

Was this helpful? If so, Please Share it by clicking a button on the left the screen..






Search The Library


Search String

Script Language