Edit

Share via


Get-VMHostPartitionableGpu

Gets the host machine’s partitionable GPU.

Syntax

ComputerName (Default)

Get-VMHostPartitionableGpu
    [[-ComputerName] <String[]>]
    [[-Credential] <PSCredential[]>]
    [-Name <String>]
    [<CommonParameters>]

CimSession

Get-VMHostPartitionableGpu
    [-CimSession] <CimSession[]>
    [-Name <String>]
    [<CommonParameters>]

Description

The Get-VMHostPartitionableGpu cmdlet gets the host machine’s partitionable graphic processing unit. This displays the information of the GPU as provided by the manufacturer's driver.

Examples

Example 1

Get-VMHostPartitionableGpu

This example gets the details of the local partitionable graphic processing unit on the host.

Example 2

Get-VMHostPartitionableGpu -ComputerName "MyHost"

This example gets a partitionable GPU by using the host name. This command will display all the GPU devices available for partitioning in the host.

Example 3

Get-VMHostPartitionableGpu -Name "GPUDeviceIDName"

Example 4

Get-VMHostPartitionableGpu | FL Name, ValidPartitionCounts

This example retrieves information about the partitionable GPUs available on a virtual machine host and formats the output as a list, displaying the name of each GPU and the number of valid partitions that can be created on each GPU.

Parameters

-CimSession

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.

Parameter properties

Type:

CimSession[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

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

-ComputerName

Specifies one or more Hyper-V hosts that run this cmdlet. NetBIOS names, IP addresses, and fully qualified ___domain names are allowed. The default is the local computer. Use localhost or a dot (.) to specify the local computer explicitly.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

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

-Credential

Specifies one or more user accounts that have permission to perform this action. The default is the current user.

Parameter properties

Type:

PSCredential[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ComputerName
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of the graphic processing unit to be retrieved.

Parameter properties

Type:String
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

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

CimSession

Outputs

Microsoft.HyperV.PowerShell.VMHostPartitionableGpu