mbrunt Posted March 27, 2014 Posted March 27, 2014 Hi all, We use local profiles for users (would prefer to use roaming but don't ask!) - anyway, some of our machines only have 80GB hard drives that after a few hundred users logon the hard drives become full - we then need to reimage. We'd like some kind of script that runs on log off to delete the users home directory and the associated registry key so that next time they logon they get a fresh profile copied from default, and all is good. Anyone done this already and can provide assistance? Many thanks Martin
fairm010 Posted March 27, 2014 Posted March 27, 2014 Delprof 2 all the way. Use it here and it works a treat. Delprof2 1.6.0 Released
Vasriel Posted March 27, 2014 Posted March 27, 2014 Hi check this page for using Delprof 2 to delete user profiles. I recently used it for making a script of my own for deleting old profiles.
fairm010 Posted March 27, 2014 Posted March 27, 2014 Heres the script we use to delete them. \\server\share\software\delprof\delprof2.exe /ed:fairm010 /ed:administrator /q echo %ComputerName% Has deleted old user profiles. >> "\\server\share\software\delprof\log.txt" This deletes any profile apart from mine and the administrator profile. (And the default windows ones of course)
mbrunt Posted March 31, 2014 Author Posted March 31, 2014 fairm010 - so you have del prof running from a server rather than locally - does this work ok?
witch Posted March 31, 2014 Posted March 31, 2014 Delprof2 here - running from server Isn't perfect but it is pretty good
mbrunt Posted March 31, 2014 Author Posted March 31, 2014 Does delprof2 also get rid of the registry keys, not only the home directories?
chazzy2501 Posted March 31, 2014 Posted March 31, 2014 I use the setting "delete profiles older than X days" computer/admintemp/system/userprofiles I've set mine to 3 days. I do not use roaming profiles.
fairm010 Posted March 31, 2014 Posted March 31, 2014 Sorry, hadn't seen an update to this thread. Yes, it deletes the respective reg keys too and it runs here perfectly from the server.
mbrunt Posted March 31, 2014 Author Posted March 31, 2014 Ok I'm struggling. I've got the script deleting profiles fine - I've then added this to group policy as a shutdown script - but it doesn't seem to be doing anything. I can't find any error logs etc :S
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