Remove-WebSitesUser

Remove-WebSitesUser

Removes a web sites user.

Syntax

Parameter Set: Default
Remove-WebSitesUser [-Name] <String> [-Force] [-PipelineVariable <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]


 

Detailed Description

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.

Parameters

-Force

Removes the user without prompting for confirmation.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-Name<String>

Specifies the name of a user.

 

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-PipelineVariable<String>

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

 

-Confirm

Prompts you for confirmation before executing the command.

 

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-WhatIf

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

 

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

Example 1: Remove a user

This command deletes the user named User01.

PS C:\> Remove-WebSitesUser -Name "User01"

 

Related topics

New-WebSitesUser

Get-WebSitesUser

Set-WebSitesUser