Skip to content

Delete windows user profile.

License

Notifications You must be signed in to change notification settings

egiberne/Remove-User-Profile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 

Repository files navigation

Remove User Profile

Remove-UserProfile.ps1

ABSTRACT

The Cmdlet. Remove-WindowsUserProfile.ps1 deletes Microsoft Windows user profile.

DESCRIPTION

This PowerShell cmdlet deletes a user profile from a local machine by specifying the username. It removes both the user profile directory and associated registry keys.

  • What is it ?

    • Script to be run once in a while.
    • Fonction to be added in your code
    • User Interface to be user friendly
  • Who is it for ?

    • IT Support
    • Power User
    • Bets Tester
  • Why to use it ?

    • Clean the Operating Sytem with the unused user profile.
    • Clean up on 32-bit & 64-bit
    • Delete account not supported by native Windows tools
  • When to use it ?

    • Whenever it is necessary to make room on the computer.
    • Remove a corrupted account
    • For testing purpose

(back to top)

QUICKSTART

Prerequisites

Get information about

  • Windows version ; Version must be 10 or alter
    • Cmdlet
    Get-ComputerInfo
    • Environment Class
    [Environment]::OSVersion
  • Powershell version ; Version must be 6 or later
    • Cmdlet
    Get-Host
    • Automatic Variable
    $PSVersionTable
    

Update Powershell

  1. Open a prompt, Powershell or Ms-Dos with eleveted permissions
  2. Run the command line
    • PowerShell
    winget install --id Microsoft.Powershell --source winget

Installation

  1. Open a PowerShell prompt with eleveted permissions
  2. Set the PowerShell execution policies for Windows computers to Unrestricted
  3. Download the archive of the project
  4. Extract the content of the archive

(back to top)

ROADMAP

Windows Linux MacOS
In progress To be decided To be decided
  • Windows
    • Script
    • Cmdlet
    • Interface

(back to top)

LICENSE

Distributed under the Unlicense. See LICENSE for more information.

(back to top)

SEE ALSO

(back to top)

ACKNOWLEDGMENTS

(back to top)

CONTACT

📧 RemoveWindowsUserProfile@gmail.com

(back to top)