New-WebSitesServer

New-WebSitesServer

Adds a server to the Web Sites cloud.

Syntax

Parameter Set: Default
New-WebSitesServer [-Name] <String> [-ServerType] {ManagementServer | LoadBalancer | WebWorker | Publisher | FileServer} [-Force] [-PipelineVariable <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]


 

Detailed Description

The New-WebSitesServer cmdlets adds a server to the Web Sites cloud. Use the ServerType parameter to specify the type of server.

Parameters

-Force

Forces the command to execute without asking for user confirmation.                                  

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-Name<String>

Specifies a name for the server.

 

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

 

-ServerType<ModifiableServerRole>

Specifies the server type. Valid values are:

-- ManagementServer

-- LoadBalancer

-- WebWorker

-- Publisher

-- FileServer

The acceptable values for this parameter are:

 

ManagementServer

 

LoadBalancer

 

WebWorker

 

Publisher

 

FileServer

 

 

 

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

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: Add a server

This command adds an existing server named WSERVER01 to the Web Sites farm, and configures it for a WebWorker role.

PS C:\> New-WebSitesServer -ServerName "WSERVER01" -ServerType "WebWorker"

 

Related topics

Get-WebSitesServer

Set-WebSitesServer

Test-WebSitesServer

Restart-WebSitesServer

Repair-WebSitesServer

Remove-WebSitesServer