Share via


Get-SCSPFServer

Gets a server object.

Syntax

Empty (Default)

Get-SCSPFServer
    [-ServerType <String>]
    [<CommonParameters>]

FromServerIdParameterSetName

Get-SCSPFServer
    -ID <Guid[]>
    [<CommonParameters>]

FromServerNameParameterSetName

Get-SCSPFServer
    -Name <String[]>
    [<CommonParameters>]

FromServerStampParameterSetName

Get-SCSPFServer
    -Stamp <Stamp>
    [-ServerType <String>]
    [<CommonParameters>]

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.

Examples

Example 1: Get all server objects

PS C:\>Get-SCSPFServer

This command gets all defined servers.

Example 2: Get a server object by its ID

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

This command gets a server by its ID.

Example 3: Get a server object by its name

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

This command gets a server by its name.

Example 4: Get the server object associated with a stamp

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

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

Parameters

-ID

Specifies one or more GUIDs for a specific object.

Parameter properties

Type:

System.Guid[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromServerIdParameterSetName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of one or more vmm12short servers.

Parameter properties

Type:

System.String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromServerNameParameterSetName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ServerType

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

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Empty
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
FromServerStampParameterSetName
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Stamp

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

Parameter properties

Type:Microsoft.SystemCenter.Foundation.SPFData.Types.Stamp
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromServerStampParameterSetName
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

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

Inputs

Microsoft.SystemCenter.Foundation.SPFData.Types.Stamp

Outputs

System.Object