MrFrostmaul Posted July 31, 2014 Posted July 31, 2014 Hello, Wanting to clean up computers around the school with old user accounts and ones which may be corrupted. Is there any script/software out there where I enter the Computer Name and the Username to remove and it will do it (Needs to be able to be ran remotely on the network). With this script to delete their profile in the Users Folder and also their Key in Regedit - ProfileList. Is there anything like this or similar as would save hours of my life. Thanks
RobD Posted July 31, 2014 Posted July 31, 2014 We run delprof2.exe via batch script attached to a GPO to remove old profiles. @echo off \\SERVERSHARE\scripts\delprof\delprof2.exe /u
Sephiroth Posted July 31, 2014 Posted July 31, 2014 I use a powershell startup script: $Profiles = gwmi -Class win32_UserProfile -Filter "RoamingConfigured='true'" Foreach ($Prof in $Profiles) { $Prof.psbase.Delete() }
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now