Get-SCSPFServer

Get-SCSPFServer

Gets one or more server objects.

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 server objects in Service Provider Foundation. In the current version of Service Provider Foundation, these are VMM server objects. To create a new server, use the New-SCSPFServer cmdlet.

Parameters

-ID<Guid[]>

Specifies one or more identifiers (as a GUID) 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 VMM 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 specify only 0 for Virtual Machine Manager (VMM) as the server type, other values are reserved for future use.

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 will return 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: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

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

1: Get all servers.

This command lists all the defined servers.

PS C:\> Get-SCSPFServer

2: Get a server by its ID.

This command gets a server by its ID.

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

3: Get a server by its name.

This command gets a server by its name.

PS C:\> $srvr = Get-SCSPFServer -Name "VMAlaska"

4: Get the server that is associated with a stamp.

This first command gets a stamp.

The second command gets the server associated with the stamp.

PS C:\> $stmp = Get-SCSPFStamp -Name "Silver"
PS C:\> $srvr = Get-SCSPFServer -Stamp $stmp

New-SCSPFServer

Set-SCSPFServer

Remove-SCSPFServer