The script searches for all profiles using the Win32_UserProfile WMI class that have not been used in X number of days, where the default is 30. If there is not a corresponding AD user in "OU=CONTOSO CORP Users,DC=Contoso,DC=local", delete the profile from the User Profile database Next I tried your script on the Title Field. it worked a treat. But thought I would mention, I ran a full profile sync and it went back to the old Title? Powershell: Script to set Outlook 2010/2013 signature using information populated from Active Directory Hey, Scripting Guy! How can I use Windows PowerShell to locate and delete all the .tmp files on a drive? OR Hey, OR. You know, theres an old Uninstall the update if already installed. From elevated PowerShell prompt type Stop wondering if scripting the complete list of Citrix components with PowerShell is possible. This article shows you how to handle each one. Update 2017.11.29 - Thanks to Paul Smith @MrPRSmith for the idea, I was able to get FDE working using a pass-through disk, see bottom of post for more info. Help with a PowerShell script to delete user / roaming profiles. As promised in my previous post,I am back with a Powershell script which helps you in deleting a users windows profile either on local computer or on mult ... which uses a PowerShell computer start up script to remove old user profiles. ... Clean up user profiles with PowerShell. But the old profiles weren't being deleted, ... delete the profile from the User Profile database I am trying to write a script that will delete the ... Delete local windows profile with PowerShell. ... Refresh remote Windows server user profile from powershell. 1. Anyone have a script to delete a specific local windows profile? ... powershell-script-to-delete-windows-user-profiles-on ... when deleting old profiles? 1. PowerShell Profile Removal GUI. ... can use PowerShell to remove local profiles from ... folder to delete based on the users SID. Delprof2 by Helge Klein ( Delprof2 deletes inactive Windows user profiles (profiles that are not currently loaded).