Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Remove a User from an ADAM GroupContent of Remove a User from an ADAM Group.vbsMD5 Hash: EC85E48D112D1A27E79B89E694F7B423 |
||
' Description: Removes a user named TestUser from the ADAM group Accountants.
On Error Resume Next Const ADS_PROPERTY_DELETE = 4 Set objGroup = GetObject _ ("LDAP://localhost:389/cn=Accountants,ou=Accounting,dc=fabrikam,dc=com") objGroup.PutEx ADS_PROPERTY_DELETE, "member", Array("cn=TestUser,ou=Accounting,dc=fabrikam,dc=com") objGroup.SetInfo | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |