Get-SCSpfServer

Gets a server object.

Syntax

Get-SCSpfServer
   [-ServerType <String>]
   [<CommonParameters>]
Get-SCSpfServer
   -ID <Guid[]>
   [<CommonParameters>]
Get-SCSpfServer
   -Name <String[]>
   [<CommonParameters>]
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.

Required Parameters

-ID

Specifies one or more GUIDs for a specific object.

Type:Guid[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of one or more vmm12short servers.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Stamp

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

Type:Stamp
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-ServerType

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

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False