Jump to content

Recommended Posts

Posted

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 :)

Posted

We run delprof2.exe via batch script attached to a GPO to remove old profiles.

 

@echo off
\\SERVERSHARE\scripts\delprof\delprof2.exe /u

Posted

I use a powershell startup script:

$Profiles = gwmi -Class win32_UserProfile -Filter "RoamingConfigured='true'"
Foreach ($Prof in $Profiles) {
   $Prof.psbase.Delete()
}

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...