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.
Parameters
-ID
Specifies one or more GUIDs for a specific object.
Type: | System.Guid[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Specifies the name of one or more vmm12short servers.
Type: | System.String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ServerType
Specifies the type of server. You can only specify 0, which designates the vmm12short server type.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | False |
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: | Microsoft.SystemCenter.Foundation.SPFData.Types.Stamp |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
Microsoft.SystemCenter.Foundation.SPFData.Types.Stamp
Outputs
System.Object