I have found some great code which great to remove user profiles and reg edit entries for one user at a time. But I have a few workstations that are common use ones. Some have up to 160 profiles on the workstation. What could be added to the script to delete all user profiles? The command i use is C:\Script\RemoveLocalUserProfile.ps1 -DeleteUnusedDay 30 -ExcludedUsers “Administrator”
I am very new to Powershell and have been tasked with this, to clean up these workstations/laptop this way. Instead of reimaging of the workstations.
If someone can point me in the right direction, any help would be greatly appreciated.