Hello everyone,
I have a bunch of computers with W11 v. 23h2 and I have encountered the same problem on all of them.
When I go to System - Advanced settings - User profile, I can see all the user profiles with the last modification date of today or yesterday, this is happening even with users who are no longer working here (disabled accounts).
They are all AD users, I don't know if this could be the problem, to be honest.
My problem is that I would love to create a PowerShell Script to delete all user profiles on all computers if the user has not logged in to that computer in the last 2 or 3 months... because we have shared computers running out of SSD space because of the user profiles (some computers are shared between 20 or more workers, since they only use the computers for reading documents, printing or sending a quick email), and deleting old profiles one by one is just tedious when you have to do it on 400+ computers... Since the user's profile are getting modified daily, the scripts won't work correctly.
Does anyone know what I can do to solve this problem? I've tried to find some solutions on Google but couldn't figure it out.
Sorry if this is the wrong place in the forums to ask.
Thanks in advance.
I have a bunch of computers with W11 v. 23h2 and I have encountered the same problem on all of them.
When I go to System - Advanced settings - User profile, I can see all the user profiles with the last modification date of today or yesterday, this is happening even with users who are no longer working here (disabled accounts).
They are all AD users, I don't know if this could be the problem, to be honest.
My problem is that I would love to create a PowerShell Script to delete all user profiles on all computers if the user has not logged in to that computer in the last 2 or 3 months... because we have shared computers running out of SSD space because of the user profiles (some computers are shared between 20 or more workers, since they only use the computers for reading documents, printing or sending a quick email), and deleting old profiles one by one is just tedious when you have to do it on 400+ computers... Since the user's profile are getting modified daily, the scripts won't work correctly.
Does anyone know what I can do to solve this problem? I've tried to find some solutions on Google but couldn't figure it out.
Sorry if this is the wrong place in the forums to ask.
Thanks in advance.
- Windows Build/Version
- W11 pro 23H2 22631.4169
My Computer
System One
-
- OS
- Windows 10, 11.
- Computer type
- PC/Desktop
- Manufacturer/Model
- HP