Get-WebSitesServer

Get-WebSitesServer

Gets the current state and configuration settings for a server.

Syntax

Parameter Set: Default
Get-WebSitesServer [[-Name] <String> ] [-PipelineVariable <String> ] [-ServerType {Controller | ManagementServer | LoadBalancer | WebWorker | Publisher | FileServer} ] [ <CommonParameters>]


 

Detailed Description

The Get-WebSitesServer cmdlet gets the current state and all configuration settings for a server. Specifiy servers by using the Name or Type parameters.

Parameters

-Name<String>

Specifies the name of a server.

 

Aliases

none

Required?

false

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<ServerRole>

Specifies the server type. Valid values are:

-- Controller

-- ManagementServer

-- LoadBalancer

-- WebWorker

-- Publisher

-- FileServer

The acceptable values for this parameter are:

 

Controller

 

ManagementServer

 

LoadBalancer

 

WebWorker

 

Publisher

 

FileServer

 

 

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

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: Get state and configuration information for a specific server

This command gets the current state and configuration information for the server named Wserver01.

PS C:\> Get-WebSitesServer -ServerName "WServer01"

 

Example 2: Get state and configuration information for a server type

This command gets the current state and configuration information for the servers of the type WebWorker.

PS C:\> Get-WebSitesServer -ServerType WebWorker

 

Related topics

New-WebSitesServer

Set-WebSitesServer

Test-WebSitesServer

Restart-WebSitesServer

Repair-WebSitesServer

Remove-WebSitesServer