Partilhar via


Get-SCPhysicalComputerProfile

Gets a physical computer profile object.

Syntax

All (Default)

Get-SCPhysicalComputerProfile
    [-VMMServer <ServerConnection>]
    [-All]
    [<CommonParameters>]

NameParameter

Get-SCPhysicalComputerProfile
    [[-Name] <String>]
    [-VMMServer <ServerConnection>]
    [<CommonParameters>]

ID

Get-SCPhysicalComputerProfile
    [-VMMServer <ServerConnection>]
    [-ID <Guid>]
    [<CommonParameters>]

Description

The Get-SCPhysicalComputerProfile cmdlet gets a physical computer profile object.

Examples

Example 1: Get a physical computer profile by ID

PS C:\> $PhysicalComputerProfile = Get-SCPhysicalComputerProfile -ID "d1ce0773-4f50-4f12-a244-38a5a35c5326"

This command gets the physical computer profile that has the specified ID, and then stores it in the $PhysicalComputerProfile variable.

Example 2: Get a physical computer profile by name

PS C:\> $PCP = Get-SCPhysicalComputerProfile -Name "Windows Server 2012 R2"

This command gets the physical computer profile named Windows Server 2012 R2, and then stores it in the $PCP variable.

Parameters

-All

Indicates that this cmdlet gets all subordinate objects independent of the parent object. For example, the command Get-SCVirtualDiskDrive -All gets all virtual disk drive objects regardless of the virtual machine object or template object that each virtual disk drive object is associated with.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

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

-ID

Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

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

-Name

Specifies the name of a Virtual Machine Manager (VMM) object.

Parameter properties

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

Parameter sets

NameParameter
Position:0
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

Specifies a VMM server object.

Parameter properties

Type:ServerConnection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
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.

Outputs

PhysicalComputerProfile

This cmdlet returns a PhysicalComputerProfile object.