Delete/remove local user from local admin gro

tony - Nov 8, 2008 at 08:00 PM
 KD - Feb 26, 2015 at 04:54 AM
we added 1000 computers to a domain/AD. Bfore deployment they imaging guy created a local user with admin rights
just for administrative purposes. After distributing the computers, we realized that we need to delete/remove the account from all the computers. we do not want to go in every computer and delete the account. All the computers have already been added to the domain in their proper OU. My question is: can someone help me with a script that can delete the user from the local admin group. I know I can disable the account but I think I would be safer to delete the account. Any help will be greatly appreciated.

8 responses

NET LOCALGROUP administrators UserName /delete

change UserName with required name & use this command in batch file.