Uninstall-User

Removes a user from the local computer.

Syntax

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

Description

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

Related Commands

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

Uninstall-User -Username WTarkin

Removes the WTarkin local user account.