Remove local user

We have Windows 7 image with three local admin accounts
After computer imaged,it is added to AD
Depending on branch,one out of three local admin accounts is used
How can I remove the other two accounts during adding to AD



Create a group policy to delete the other accounts. If the computer is in branch 1 ou user 2 and 3 are deleted.

computer configuration - Preferences - Control Panel Settings - Local Users and Groups
New Local User - Action Delete



Create a group policy to delete the other accounts. If the computer is in branch 1 ou user 2 and 3 are deleted.

computer configuration - Preferences - Control Panel Settings - Local Users and Groups
New Local User - Action Delete



Perfect. Maybe you know how to delete user profile folders in a C:Users ?



That would be close to the same.

computer configuration - preferences - windows settings - folders
create new folder - Action delete.



Thank you



No problem, glad to help.

Share this

Related Posts

There was an error in this gadget