question

ShaneKing-3381 avatar image
0 Votes"
ShaneKing-3381 asked DSPatrick edited

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



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..


windows-active-directorywindows-10-network
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered DSPatrick edited

You could enable this policy.
http://woshub.com/delete-old-user-profiles-gpo-powershell/

Computer Configuration\Administrative Templates\System\User Profile
146599-image.png

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



image.png (81.0 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just checking if there's any progress or updates?

--please don't forget to upvote and Accept as answer if the reply is helpful--



0 Votes 0 ·

Hi DSPatrick, apologies I missed some detail in my haste to get out the door...... Have updated the Q

0 Votes 0 ·

Sounds good, there's nothing native for that, but you can probably script something that meets your conditions and do it with PowerShell.
http://woshub.com/delete-old-user-profiles-gpo-powershell/

--please don't forget to upvote and Accept as answer if the reply is helpful--







0 Votes 0 ·
LimitlessTechnology-2700 avatar image
1 Vote"
LimitlessTechnology-2700 answered ShaneKing-3381 commented

Hello @ShaneKing-3381

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--

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi LT-2700, apologies I missed some detail in my haste to get out the door...... Have updated the Q

0 Votes 0 ·
MotoX80 avatar image
0 Votes"
MotoX80 answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.