Solved

GPO - delete all old locale user profiles

Posted on 2014-11-25
4
111 Views
Last Modified: 2014-11-25
Hello,

I asking a question about gpo. I wanna delete all  locale user profiles on every computers with a gpo after X times.

Is it possible, or should i creat a batch/powershell file that'll be launch at startup?

Thanks for your time.
0
Comment
Question by:Pinpindesbois
  • 2
4 Comments
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 40464952
Use User Profile Deletion Utility to delete stale user profiles
http://technet.microsoft.com/en-us/magazine/2009.05.utility.aspx
0
 
LVL 23

Accepted Solution

by:
NVIT earned 500 total points
ID: 40464982
after X times
Do you mean after X days?

You can use DELPROF:
http://www.microsoft.com/en-us/download/details.aspx?id=5405

You can run DELPROF remotely:
https://helgeklein.com/blog/2008/12/deleting-user-profiles-correctly/

Delprof is not compatible with Windows 7 and 2008 R2. For Windows 7 and 2008 R2, you can use https://helgeklein.com/free-tools/delprof2-user-profile-deletion-tool/
0
 

Author Comment

by:Pinpindesbois
ID: 40465092
Oh nice! how to target an OU? Seems not possible :(
0
 
LVL 23

Expert Comment

by:NVIT
ID: 40465161
I haven't tested this but, maybe for the OU you can call it from the Computer Configuration > Policies > Windows Settings > Scripts > Startup
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is a little timesaver I have been using for setting up Microsoft Small Business Server (SBS) in the simplest possible way. It may not be appropriate for every customer. However, when you get a situation where the person who owns the server is i…
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

912 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

16 Experts available now in Live!

Get 1:1 Help Now