Restart-WebSitesSite

Restarts a website site.

Syntax

Restart-WebSitesSite [-Name] <String> [-Confirm] [-RemoteSettings <RemoteSettings>] [-SuppressRequestIdLine]
 [-WhatIf] [<CommonParameters>]

Description

The Restart-WebSitesSite cmdlet restarts a website site.

Examples

Example 1: Restart a web site

PS C:\> Restart-WebSitesSite -Name "Site01"
This command restarts the website Site01.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Specifies the name of the website being restarted.
For example:

-Name "ContosoInternal"

Type:String
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-RemoteSettings

{{Fill RemoteSettings Description}}

Type:RemoteSettings
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-SuppressRequestIdLine

{{Fill SuppressRequestIdLine Description}}

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs.
The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False