Removes a web sites user.
Syntax
Parameter Set: Default
Remove-WebSitesUser [-Name] <String> [-Force]
[-PipelineVariable <String> ] [-Confirm] [-WhatIf] [
<CommonParameters>]
The Remove-WebSitesUser removes a web sites user. If a user owns subscriptions, the user will not be deleted. Use the Remove-WebSitesSubscription cmdlet to remove any subscriptions a user owns before running this cmdlet.
Removes the user without prompting for confirmation.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Specifies the name of a user.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Specifies a variable to be used with the pipeline operator.
Aliases |
pv |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Prompts you for confirmation before executing the command.
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Describes what would happen if you executed the command without actually executing the command.
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
This command deletes the user named User01.
PS C:\> Remove-WebSitesUser -Name "User01"