Method to delete old profiles for domain users on Workstations/devices where the AD account has been deleted

Shane King 26 Reputation points

Does anyone know of or have, a method to delete users profiles properly from client devices, of deleted domain users. By "properly" I mean that it emulates the process of going to Properties >> Advanced System Settings >> Advanced TAB >> User profiles.

With the early days of SSD's and tablets, some have quite limited storage and I need to remove them en masse from a large number of domain joined devices, some of which are not always accessible (turned off)

At this particular site the Server OS is 2008R2 and Client OS Windows 10.

I don't want to delete profiles where the user still exists on the domain, the nursing staff rotate around the different wards and hence sit at different machines - I don't want to delete them if they are still users on the domain, as they have to have the App reconfigured, links to OLK re-established every time a new profile is created.

Any suggestions... besides visiting 100's of machines... keep that one to yourself..

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
3,607 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
1,935 questions
No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 37,301 Reputation points

    Hello @Shane King

    In my case I am using GPO. You can set to automatically delete Domain user profiles that are older than X time.

    Path: Computer Configuration → Administrative Templates → System → User Profile → Delete user profiles older than a specified number of days on system restart

    Hope this helps with your query,

    --If the reply is helpful, please Upvote and Accept as answer--

  2. Dave Patrick 329.1K Reputation points Microsoft MVP

    You could enable this policy.

    Computer Configuration\Administrative Templates\System\User Profile

    --please don't forget to upvote and 145510-image.png if the reply is helpful--

  3. MotoX80 23,491 Reputation points
    No comments