powershell delete local user code example Example: powershell delete local user PS C:\> Remove-LocalUser -Name "AdminContoso02"