[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 99
  • Last Modified:

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
0
Vadim Mikhal
Asked:
Vadim Mikhal
  • 3
  • 2
1 Solution
 
Gabriel CliftonCommented:
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
 
Vadim MikhalNeywork EngineerAuthor Commented:
Perfect. Maybe you know how to delete user profile folders in a C:\Users ?
0
 
Gabriel CliftonCommented:
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 CliftonCommented:
No problem, glad to help.
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now