New-WebSitesServer

Creates a website server.

Syntax

New-WebSitesServer [-Name] <String> [-ServerType] <ModifiableServerRole> [-Confirm] [-Force]
 [-RemoteSettings <RemoteSettings>] [-SuppressRequestIdLine] [-WhatIf] [<CommonParameters>]

Description

The New-WebSitesServer cmdlet creates a website server.

Examples

Example 1: Create a server

PS C:\> New-WebSitesServer -Name "WSERVER01" -ServerType "WebWorker"
This command creates a new WebWorker server named WSERVER01.

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

-Force

Forces the command to run without asking for user confirmation.

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

-Name

Specifies the name of the server.
For example:

-Name "ContosoServer"

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

-ServerType

Specifies the type of the server being created.
Valid values are:

- ManagementServer. Manages the website infrastructure.
- LoadBalancer. Distributes and manages web traffic.
- WebWorker. Hosts websites.
- Publisher. Publishes content to file servers.
- FileServer. Stores website content.

For example:

-Type "FileServer"

Type:ModifiableServerRole
Parameter Sets:ManagementServer, LoadBalancer, WebWorker, Publisher, FileServer
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
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