< Back

Uninstall-CUser

Sun Jan 12, 2020 11:44 pm

NAME Uninstall-CUser



SYNOPSIS

Removes a user from the local computer.





SYNTAX

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





DESCRIPTION

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





PARAMETERS

-Username <String>

The username of the account to remove.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Uninstall-CUser -Username WTarkin



Removes the `WTarkin` *local* user account.











RELATED LINKS

Get-CUser

Install-CUser

Test-CUser

Uninstall-CUser