Solved

Remote removal of old roaming profiles

Posted on 2009-05-08
5
315 Views
Last Modified: 2012-05-06
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  
0
Comment
Question by:hainsNET
  • 2
  • 2
5 Comments
 
LVL 47

Assisted Solution

by:Donald Stewart
Donald Stewart earned 150 total points
ID: 24340689
0
 
LVL 12

Accepted Solution

by:
zoofan earned 350 total points
ID: 24341589
I second dstewartjr post delprof is the way to handle this correctly

and will add, once you have them cleaned out...

Install the 'User Profile Hive Cleanup Service' to keep it from happening again and again and again.

http://www.microsoft.com/downloads/details.aspx?FamilyID=1b286e6d-8912-4e18-b570-42470e2f3582&displaylang=en





zf
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 24342034
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.
0
 
LVL 12

Expert Comment

by:zoofan
ID: 24342083
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
0
 

Author Closing Comment

by:hainsNET
ID: 31579666
Between these two options I have attained the info I need. Thanks everybody. Greg.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Seperate Windows 7 Purchases or Volume License... 13 205
Application Not Found 3 102
Looking to disable remote computers 6 78
HP PC Hardware Diagnostics UEFI 11 158
Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question