Solved

GPO - delete all old locale user profiles

Posted on 2014-11-25
4
109 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

My purpose is to describe the basic concepts of virtual memory as implemented in a modern Windows-based operating system. I will also describe the problems inherent in older systems and how virtual memory solves them. The dark ages - before virtu…
This article describes how to set permissions to allow a limited-permissions user to start and stop a particular System Service.   It is always best to give users only the permissions that they need to perform their job, so tweaking particular permi…
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…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

706 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

18 Experts available now in Live!

Get 1:1 Help Now