Jump to content

Delprof2 - Unofficial successor to Microsoft’s Delprof user profile deletion tool


Recommended Posts

  • 3 months later...
  • 7 months later...
Posted

Hi helge

 

Cracking program thanks however appear to be having a problem but currently there seems to be a problem registering on your website so thought I'd post here.

 

I'm executing DelProf2 as a startup script through GPO using the following script

@echo off
pushd "%~dp0"
"[url="file://\\domainname\netlogon\DelProf2.exe"]\\domainname\netlogon\DelProf2.exe[/url]" /i /u /ed:CVS* /ed:RM* /ed:Default >c:\delprof2.log 2>&1
popd

I am using the /d and /ntuserini switches but for testing purposes I've removed these.

 

When rebooting the computer, no profiles are deleted and the log reads:

DelProf2 by Helge Klein (Helge Klein | Home of SetACL)

Listing inactive profiles on 'TESTSTATION_7'.

Excluding directories matching: CVS*, RM*, Default

Enumerating directories '\\TESTSTATION_7\C$\Users\*.*' failed with: The network name cannot be found.

The network name can be found and opens fine when manually browsing it from another computer and this one itself. Any ideas why this may be happening?

Posted
Hi helge

 

Cracking program thanks however appear to be having a problem but currently there seems to be a problem registering on your website so thought I'd post here.

 

I'm executing DelProf2 as a startup script through GPO using the following script

@echo off
pushd "%~dp0"
"[url="file://\\domainname\netlogon\DelProf2.exe"]\\domainname\netlogon\DelProf2.exe[/url]" /i /u /ed:CVS* /ed:RM* /ed:Default >c:\delprof2.log 2>&1
popd

I am using the /d and /ntuserini switches but for testing purposes I've removed these.

 

When rebooting the computer, no profiles are deleted and the log reads:

The network name can be found and opens fine when manually browsing it from another computer and this one itself. Any ideas why this may be happening?

 

Can I suggest doing it as a shutdown script instead.

 

Ben

  • Thanks 1
Posted

@helge: No worries, I'm in now ta ;)

@plexer: Seems to have done the trick. Not sure why I didn't try this previously as would be the obvious thing to try seeing as it isn't essential to run this script at startup :doh:. I was on a single track of thought...

Posted
Sorry to ask the obvious but if you delete someones profile in vista/7 by hand (i.e. go into the folder and delete the files) they can never loginto that machine again (as it breaks). I'm assuming delprof 2 deletes it in a way that doesn't do this?
  • 9 months later...
Posted

Hello im having an issue with Delprof2.

 

while executing delprof.bat containing the comand DELPROF2 /c:\\suite01-pc\c$ /i /u, i get the error "Privilege 'Restore files and directories' could not be enabled. DelProf2's powers are restricted. Better run DelProf2 with admin rights."

 

i run the .bat as administrator and also ive set delpro2.exe to run always as administrator. The account im logged into is the domain admin. Windows 7 pro environment banging my head against the wall

 

Thanks

Posted (edited)

while executing delprof.bat containing the comand DELPROF2 /c:\\suite01-pc /i /u, i get the error "Privilege 'Restore files and directories' could not be enabled.

 

I believe it is because the syntax is wrong - you need to type DELPROF2 /c:suite01-pc /i /u - remove the \\ and it will work

Edited by hfnistelrooy
edit
  • 2 weeks later...
Posted
I believe it is because the syntax is wrong - you need to type DELPROF2 /c:suite01-pc /i /u - remove the \\ and it will work

 

Even if its a networked machine ? with your code i still get the same error.

Posted

This is what I use

 

For /f %%a in (dellist_all.txt) Do DelProf2.exe /C:%%a -d:7 -q

 

I have a txt file with my machine names listed, one per line. I have both files in the root of C: on a machine in the same domain as the machine I want to clean up and then run the bat file. Job done.

Posted
This is what I use

 

For /f %%a in (dellist_all.txt) Do DelProf2.exe /C:%%a -d:7 -q

 

I have a txt file with my machine names listed, one per line. I have both files in the root of C: on a machine in the same domain as the machine I want to clean up and then run the bat file. Job done.

 

Danp so you have a dellist_all.txt on root of c containing machine names, as well as delprof2.exe i take it then you have a run.bat file with the code you have shown on ?

Posted

Danp, with your code im getting

 

"Privilege 'Back up files and directories' could not be enabled. DelProf2's powers are restricted. Better run DelProf2 with admin rights."

 

i have gone to properties and click run this as admin i am also domain admin

 

odd.

 

- - - Updated - - -

 

Danp, with your code im getting

 

"Privilege 'Back up files and directories' could not be enabled. DelProf2's powers are restricted. Better run DelProf2 with admin rights."

 

i have gone to properties and click run this as admin i am also domain admin

 

odd.

Posted

Yes, on the root of c: I have file call del.bat (can be any name) with the above code in. I also have DelProf2.exe in the same place.

 

Yes, I have a text file called dellist_all.txt with a list of machines in

 

e.g.

CC4-ARTS-01

CC4-ARTS-02

CC4-ARTS-03

CC4-ARTS-04

CC4-ARTS-05

CC4-ARTS-06

 

I have a few of these saved now, some without the 7 day retention.

Posted
Does this also remove any mention of the profile from the Win7 registry? This as been a problem for us in the past and I'm thinking delprof2 might be part of a wider solution to our roaming profile woes. I'm also thinking of using redirected folders for AppData as I guess it's this folder causing most of the corruption problems, I'm just unsure how to go about it.
  • 1 month later...
Posted (edited)
Yes, on the root of c: I have file call del.bat (can be any name) with the above code in. I also have DelProf2.exe in the same place.

 

Yes, I have a text file called dellist_all.txt with a list of machines in

 

e.g.

CC4-ARTS-01

CC4-ARTS-02

CC4-ARTS-03

CC4-ARTS-04

CC4-ARTS-05

CC4-ARTS-06

 

I have a few of these saved now, some without the 7 day retention.

 

I want to follow your lead but need some code explaination.

Can I put the text file, Delprof2.exe and the *.bat in a folder (c:\profdel\***)?

 

What is /f (I can guess but..) and %%a ?

 

I want to run these on all our library machines from my machine, here is what I have so far DELPROF2 /i /u /d:60 /ed:admin* /ed:MyName /ed:default* I want to add a text file showing all our lib. machines (on domain, networked)

hs-lib-d01

hs-lib-d02

ect...to d30

Edited by nashphil
emoticon not wanted but added
  • 2 weeks later...
Posted
I want to follow your lead but need some code explaination.

Can I put the text file, Delprof2.exe and the *.bat in a folder (c:\profdel\***)?

 

What is /f (I can guess but..) and %%a ?

 

I want to run these on all our library machines from my machine, here is what I have so far DELPROF2 /i /u /d:60 /ed:admin* /ed:MyName /ed:default* I want to add a text file showing all our lib. machines (on domain, networked)

hs-lib-d01

hs-lib-d02

ect...to d30

 

I don't see why you cant have them in their own folder, I just stuck them on the root of C because I am lazy. I also run this from a machine on the same domain as the machines I want clean up, otherwise I wont work. I dont know what the %%a is for, but it works ;)

  • 9 months later...
  • 7 months later...
Posted
Delprof2 is fantastic. However, I wonder if it can be run simultaneously on the same machine to speed up the deletion of profiles? We are collapsing a domain and rolling all the users into a new domain. Each machine can have upwards of 30 user profiles on them. I am running the command from a utility machine at the local site. It reads a file list of computer names to remove the profiles on those machines. I'd like to break that list of machines up into smaller chunks and run Delprof2 reading each file. Is that possible?
  • 2 weeks later...
Posted
Yes, on the root of c: I have file call del.bat (can be any name) with the above code in. I also have DelProf2.exe in the same place.

 

Yes, I have a text file called dellist_all.txt with a list of machines in

 

e.g.

CC4-ARTS-01

CC4-ARTS-02

CC4-ARTS-03

CC4-ARTS-04

CC4-ARTS-05

CC4-ARTS-06

 

I have a few of these saved now, some without the 7 day retention.

 

After a a lot of time trying to figure out my problem i managed to find out what was wrong. The remote registry was not enabled apparently in win7 is disabled by default.

 

You how ever can remotely enable this as long as you are an administrator using the cmd "sc \\computername start remoteregistry start= auto"

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...