Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

clean up users roaming profiles

Status
Not open for further replies.

bchizary

Technical User
Aug 28, 2003
148
GB
Hi just a little one here, probly easy to sort. We have approx 50 xp pro pcs on an nt4 domain, using roaming profiles. This means, when you log on the pc gets a copy of the roaming desktop setting and uses it, then when you log off, there is a temp copy left in the document and setting folder. Thing is this never cleans itself out, so if i log on a pc just once in like a year, the setting are all still there. Id there a way to get the folder to clean out the temp profile held on the pc when a profile has not been used in a week or so?

cheers
Ben
 
You can find Delprof in the various Windows resource kits. You can also download it from the Microsoft Download Center. (Go to http:// and search on delprof.exe.) Delprof's syntax is simple. For example, the command

Delprof.exe /I /Q /C:\\pc1 /D:90

tells Delprof to delete all the profiles that haven't been used in the past 90 days from the computer named PC1. The /I switch tells Delprof to ignore errors. The /Q switch tells the utility to delete profiles without confirmation. The /Q switch is important to include if you plan to automate the deletion process. When you don't include this switch, you must confirm that you want to delete each profile before Delprof will delete it.

To automate the deletion process, you can create a simple text file named computers.txt that contains all the names of the computers in your network. You need to put each name on a separate line. After you've created this file, run the following For command from the command-shell window:

For /f %a in (computers.txt) Do
Delprof.exe /I /Q /C:\\%a /D:90

Delprof will then delete all the profiles that haven't been used in the past 90 days from the computers specified in the text file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top