Restart-WebSitesServer

Restarts a website server.

Syntax

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

Description

The Restart-WebSitesServer cmdlet restarts a website server.

Examples

Example 1: Restart a server

PS C:\> Restart-WebSitesServer -Name "WSERVER01"

This command restarts the server WSERVER01.

Required Parameters

-Name

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

-Name "ContosoServer"

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

{{Fill RemoteSettings Description}}

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

{{Fill SuppressRequestIdLine Description}}

Type:SwitchParameter
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False