Get-SCSPFServer

Get-SCSPFServer

Gets a server object.

Syntax

Parameter Set: Empty
Get-SCSPFServer [-ServerType <String> ] [ <CommonParameters>]

Parameter Set: FromServerIdParameterSetName
Get-SCSPFServer -ID <Guid[]> [ <CommonParameters>]

Parameter Set: FromServerNameParameterSetName
Get-SCSPFServer -Name <String[]> [ <CommonParameters>]

Parameter Set: FromServerStampParameterSetName
Get-SCSPFServer -Stamp <Stamp> [-ServerType <String> ] [ <CommonParameters>]




Detailed Description

The Get-SCSPFServer cmdlet gets one or more VMM server objects from the Service Provider Foundation service.

To create a server, use the New-SCSPFServer cmdlet.

Parameters

-ID<Guid[]>

Specifies one or more GUIDs for a specific object.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String[]>

Specifies the name of one or more servers.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ServerType<String>

Specifies the type of server. You can only specify 0, which designates the server type.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Stamp<Stamp>

Specifies a stamp for which this cmdlet returns associated servers. To obtain a stamp, use the Get-SCSPFStamp cmdlet.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get all server objects

This command gets all defined servers.


PS C:\> Get-SCSPFServer

Example 2: Get a server object by its ID

This command gets a server by its ID.


PS C:\> $Server = Get-SCSPFServer -ID f50e36aa-216f-4ade-a2c0-95cf17b93ee4

Example 3: Get a server object by its name

This command gets a server by its name.


PS C:\> $Server = Get-SCSPFServer -Name "ContosoVM"

Example 4: Get the server object associated with a stamp

The first command gets a stamp. The second command gets the server associated with the stamp.


PS C:\> $Stamp = Get-SCSPFStamp -Name "ContosoStamp11"
PS C:\> $Server = Get-SCSPFServer -Stamp $Stamp

Related topics

Community Additions

ADD
Show: