Login | |
|
 |
RE: Remove domain users (not local account) from the lo... - 5/16/2006 3:30:48 AM
|
|
 |
|
| |
Country73
Posts: 733
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
|
I had to do something similar to what you are needing a little while back. I first had to generate a list of all our machines and what accounts were setup as Local Admin. This would create an excel spreadsheet listing machine name and all local admin accounts that were setup. Once this was created, upper management went over the list to verify what accounts should remain and which ones should be removed. (They basically deleted all of the rows of the accounts they wanted to keep) When the list was returned to me, I ran a script to read through that file to create a text file to run my "RemoveAdmin.vbs". The text file listed: Machine;Account;Account;etc... Machine;Account;Account;etc... etc... The RemoveAdmin script would then take that text file and remove those specific accounts from those specific machines. Is this something that you are interested in, or are you just wanting to remove all accounts listed in the local admin group?
|
|
| |
|
|
|
|
|