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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a script to delete user profile directories from PC

Status
Not open for further replies.

brian6655

IS-IT--Management
Oct 4, 2007
5
AU
I'm unsure if this is the right place but...

I need to be able to periodically clean out the user profiles on a presentation PC in a conference room. Therefore I need a script which will remove directories recursively. However I don't know the name of the directories, except for a prefix. I know that windows rd /s /q won't do it, because it won't allow the use of wildcards (which is the obvious way to do it but being Micro$oft of course... ).

Therefore, is there someone who could supply me with a command that will remove directories and all the subdirectories under them, in windows? Pretty please?
 
Have a look at the User Profile Deletion Utility.

- User Profile Deletion Utility (Delprof.exe)


- How To Delete User Profiles by Using the User Profile Deletion Utility (Delprof.exe) in Windows 2000


- The Easy Way to Delete Unused Profiles


Joey
CCNA, MCP, A+, Network+, Wireless#
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top