Remove Multiple Local User Profiles

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Olaf Soyk Olaf Soyk 3 months ago.

  • Author
  • #69303
    Profile photo of Mike Mckay
    Mike Mckay

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



    The code is located – Here

  • #69310
    Profile photo of Olaf Soyk
    Olaf Soyk

    I've been told that DelProf is one of the easiest solutions for these kind of tasks.

You must be logged in to reply to this topic.