Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Vb scripts to remove the user from the member of perticular group (say from domain admin) from windows servers 2003 and 2008

$
0
0

Hi,

I need VB script which to checks the perticular user in AD and if it exists;that user needs to be removed from the member of perticular group

Ex:- Lets say

I have a user 783562 , I need to search this user in AD to verify user exists or not. If not then I no need to remove the mebership from perticular group

Second scenario:-

If user exists then I need to remove the user membership from the perticular group.I want to do it in automation

Manual Path:-

1.Type dsa.msc in run command of IT session(we using it to connect remote desktop).

2. Select the domain & right click (EX:-corp.ds.xxyyzz.com) and select "Find" to find the user form the domain.

3. Type the user name in the Name field and click on "Find Now" button user name will be displayed in search result.

4. Double click on this user ID and select "Member Of" tab.

5. Select any member of group from the Name section then click on "Remove" button.

6. Finally click on "Apply" and "OK" button.

Kindly help me out to do this by using vb script.

Thanks

Raja


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>