Removes a user from the local computer.
Uninstall-User [-Username] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Removes a local user account. If the account doesn't exist, nothing happens.
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 . |
Uninstall-User -Username WTarkin
Removes the WTarkin
local user account.