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
Vadim MikhalNeywork EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gabriel CliftonNet AdminCommented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vadim MikhalNeywork EngineerAuthor Commented:
Perfect. Maybe you know how to delete user profile folders in a C:\Users ?
0
Gabriel CliftonNet AdminCommented:
That would be close to the same.

computer configuration -  preferences -  windows settings - folders
create new folder - Action delete.
0
Vadim MikhalNeywork EngineerAuthor Commented:
Thank you
0
Gabriel CliftonNet AdminCommented:
No problem, glad to help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.