Link to home
Start Free TrialLog in
Avatar of hainsNET
hainsNETFlag for Australia

asked on

Remote removal of old roaming profiles

Hi,
Am trying to setup a batch from the server that will interrogate each workstation on the domain and then remove the all romaing profles older than (x) days as parsed to the batch file. It would need to exclude all the important/system ones, but those of "username.domainame".
I can almost manage this, but need to know how to delete the entry from Control Panel; System; Advanced; User Profiles as well - to clean it all up properly.
Has anybody setup anything like this before to clean up their workstations?
Greg  
SOLUTION
Avatar of Don
Don
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The 'User Profile Hive Cleanup Service'  isnt for cleaning up or removing profiles, It is meant for resolving unresolved logoffs/hangs that are sometimes a problem with roaming profiles. A better Idea would be to enable the group policy of delete cached profiles.
Oh sorry, I didnt mean that it was for cleaning up the profiles I agreed with you on delprof for that, but what it does do is help prevent those profiles from not getting left behind in the first place,  including when you have the GPO set.

http://windowsitpro.com/article/articleid/42257/whats-user-profile-hive-cleanup-service-uphclean.html


zf
Avatar of hainsNET

ASKER

Between these two options I have attained the info I need. Thanks everybody. Greg.