GlennOwens Posted December 13, 2010 Posted December 13, 2010 In the documents and settings folder there is a long list of old user folders. I need to delete everything but the "admin", "all users" and "default user" folders... Here is the bat file I have, but I can't get it to exclude anything: for /D %%j in ("C:\documents and settings\*") do RD /S /Q "%%j"
imiddleton25 Posted December 13, 2010 Posted December 13, 2010 i have a vb script at work for this will dig it out and post it in morning
mac_shinobi Posted December 14, 2010 Posted December 14, 2010 Use delprof - much easier As long as you don't have roaming profiles you can make the users a member of either the local or domain guest group which by design will delete there profile at log off. If you use roaming profiles and do the above ref making them a member of the guest group it wont copy the profile back to the server and will delete it ( as per another thread on edugeek )
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