[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 128
  • Last Modified:

GPO - delete all old locale user profiles

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
Pinpindesbois
Asked:
Pinpindesbois
  • 2
1 Solution
 
David Johnson, CD, MVPOwnerCommented:
Use User Profile Deletion Utility to delete stale user profiles
http://technet.microsoft.com/en-us/magazine/2009.05.utility.aspx
0
 
NVITCommented:
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
 
PinpindesboisAuthor Commented:
Oh nice! how to target an OU? Seems not possible :(
0
 
NVITCommented:
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now