Skip to content

Latest commit

 

History

History
162 lines (115 loc) · 3.82 KB

Get-VMHostPartitionableGpu.md

File metadata and controls

162 lines (115 loc) · 3.82 KB
description external help file Module Name ms.date online version schema title
Gets the host machine’s partitionable GPU.
Microsoft.HyperV.PowerShell.Cmdlets.dll-Help.xml
Hyper-V
06/12/2024
2.0.0
Get-VMHostPartitionableGpu

Get-VMHostPartitionableGpu

SYNOPSIS

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.

Type: CimSession[]
Parameter Sets: CimSession
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
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[]
Parameter Sets: ComputerName
Aliases:

Required: False
Position: 0
Default value: None
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[]
Parameter Sets: ComputerName
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name

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

Type: String
Parameter Sets: (All)
Aliases:

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Microsoft.Management.Infrastructure.CimSession[]

OUTPUTS

Microsoft.HyperV.PowerShell.VMHostPartitionableGpu

NOTES

RELATED LINKS

Set-VMHostPartitionableGpu