Deleting Multiple Accounts at Once on a Workstation


  • Hello All,

    I have used this script - located here -

    Remove-UserProfile - Remove Local User Profiles and Clean C:\Users Directory

    This script runs great, but i have some workstations up to 160 profiles on workstation.  I would like to remove all profiles in one command vice hitting Yes for every account deletion.

    I am just wondering what can be added to this script to a accomplish this.

    The command line i use is C:\Script\RemoveLocalUserProfile.ps1 -DeleteUnusedDay 30 -ExcludedUsersAdministrator


    Any help would be greatly appreciated. Thanks Mike

    Friday, April 21, 2017 4:36 AM

All replies