Solved

Remote removal of old roaming profiles

Posted on 2009-05-08
5
313 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

910 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now