Restart-WebSitesSite

Restart-WebSitesSite

Restarts a tenant web site.

Syntax

Parameter Set: Default
Restart-WebSitesSite [-Name] <String> [-PipelineVariable <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]


 

Detailed Description

The Restart-WebSitesSite cmdlet restarts a tenant web site.

Parameters

-Name<String>

Specifies a name of a site.

 

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: Restart a web site

This command restarts the web site named Site01.

PS C:\> Restart-WebSitesSite -Name "Site01"

 

Related topics

New-WebSitesSite

Get-WebSitesSite

Set-WebSitesSite

Remove-WebSitesSite