none
Deleting Multiple Accounts at Once on a Workstation

    Question

  • Hello All,

    I have used this script - located here - https://gallery.technet.microsoft.com/scriptcenter/Remove-UserProfile-Remove-96e27a3b/view/Discussions#content

    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