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>]
The Get-WebSitesServer cmdlet gets the current state and all configuration settings for a server. Specifiy servers by using the Name or Type parameters.
Specifies the name of a server.
Aliases |
none |
Required? |
false |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
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 |
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 |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
This command gets the current state and configuration information for the server named Wserver01.
PS C:\> Get-WebSitesServer -ServerName "WServer01"
This command gets the current state and configuration information for the servers of the type WebWorker.
PS C:\> Get-WebSitesServer -ServerType WebWorker