Modifier

Partager via


Get-VMHostPartitionableGpu

Gets the host machine’s partitionable GPU.

Syntax

Get-VMHostPartitionableGpu
   [[-ComputerName] <String[]>]
   [[-Credential] <PSCredential[]>]
   [-Name <String>]
   [<CommonParameters>]
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"

Displays a partitionable GPU by using the specific GPU device name. The result will show the details of the specific GPU listed.

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.

Type:CimSession[]
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters: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.

Type:String[]
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Credential

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

Type:PSCredential[]
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

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

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

Inputs

CimSession[]

Outputs

Microsoft.HyperV.PowerShell.VMHostPartitionableGpu