Remove-User

Removes a user from the local computer.

Syntax

Remove-User [-Username] <String> [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Removes a local user account. If the account doesn't exist, nothing happens.

Parameters

Name Type Description Required? Pipeline Input Default Value
Username String The username of the account to remove. true false
WhatIf SwitchParameter false false
Confirm SwitchParameter false false
CommonParameters This cmdlet supports common parameters. For more information type
Get-Help about_CommonParameters.

EXAMPLE 1

Remove-User -Username WTarkin

Removes the WTarkin local user account.