Skip to content

Publish main to live, 07/09, 3:30 PM IST #3845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 53 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
e9c7649
Updated VMHostAssignableDevice command set
Xelu86 Jun 18, 2024
196cf3a
Updated VMAssignablePartitionableGpu command set
Xelu86 Jun 18, 2024
adad7bc
Updated VMGpuPartitionAdapter command set
Xelu86 Jun 18, 2024
eb2401f
Minor edit
Xelu86 Jun 18, 2024
af6afb7
Update ComputerName description
Xelu86 Jul 3, 2024
4186c30
Applied feedback for Dismount cmdlet
Xelu86 Jul 3, 2024
ee33921
Update ComputerName for Get cmdlet
Xelu86 Jul 3, 2024
92ecded
2nd pass of VMHostAssignableDevice cmdlets
Xelu86 Jul 3, 2024
36debb2
Updated command set
Xelu86 Jul 8, 2024
ec3f12c
Updated command set
Xelu86 Jul 8, 2024
2da3da6
Updated command set
Xelu86 Jul 8, 2024
ffff4e3
Minor edit
Xelu86 Jul 8, 2024
42157ad
Removed Example 2 as it belongs to another cmdlet
Xelu86 Jul 8, 2024
a64971e
Updated command set
Xelu86 Jul 8, 2024
0f66787
Fixing indents
Xelu86 Jul 8, 2024
2c4d896
Fixing indents
Xelu86 Jul 8, 2024
df69d6c
Fixing indents
Xelu86 Jul 8, 2024
4e920c0
Updated Hyper-V cmdlet list
Xelu86 Jul 8, 2024
7a6c90a
Merge branch 'update_vmassdev' of https://github.com/Xelu86/windows-p…
Xelu86 Jul 8, 2024
fbc89c6
Merge branch 'main' into update_vmgpupartitionadapter
Xelu86 Jul 8, 2024
34abebf
Merge branch 'main' into update_vmhostassignabledevice
Xelu86 Jul 8, 2024
c4bce11
Merge branch 'main' into update_vmhostpartitionablegpu
Xelu86 Jul 8, 2024
0a47683
Merge branch 'main' into update_vmassdev
Xelu86 Jul 8, 2024
07ee109
Merge branch 'main' into update_vmhostpartgpu
Xelu86 Jul 8, 2024
ddc09c5
Merge branch 'main' into update_vmgpupartada
Xelu86 Jul 8, 2024
ae8afed
Merge branch 'main' into update_vmhostassdev
Xelu86 Jul 8, 2024
8d414e7
Merge pull request #3823 from Xelu86/update_vmgpupartitionadapter
Xelu86 Jul 8, 2024
ccd2c76
Merge branch 'main' into update_vmhostpartgpu
Xelu86 Jul 8, 2024
4f346d1
Merge branch 'main' into update_vmhostpartitionablegpu
Xelu86 Jul 8, 2024
1184ad1
Merge branch 'main' into update_vmgpupartada
Xelu86 Jul 8, 2024
d44415d
Merge branch 'main' into update_vmhostassdev
Xelu86 Jul 8, 2024
f546d15
Merge branch 'main' into update_vmassdev
Xelu86 Jul 8, 2024
cbbe674
Merge branch 'main' into update_vmhostassignabledevice
Xelu86 Jul 8, 2024
4d917b5
Merge pull request #3841 from Xelu86/update_vmhostpartgpu
Xelu86 Jul 8, 2024
49fd3d8
Merge branch 'main' into update_vmhostpartitionablegpu
Xelu86 Jul 8, 2024
6b84125
Merge branch 'main' into update_vmhostassdev
Xelu86 Jul 8, 2024
422d2c8
Merge branch 'main' into update_vmhostassignabledevice
Xelu86 Jul 8, 2024
e30f07d
Merge branch 'main' into update_vmassdev
Xelu86 Jul 8, 2024
2e938c9
Merge pull request #3822 from Xelu86/update_vmhostpartitionablegpu
Xelu86 Jul 8, 2024
0d398e7
Merge branch 'main' into update_vmhostassdev
Xelu86 Jul 8, 2024
c823759
Merge branch 'main' into update_vmgpupartada
Xelu86 Jul 8, 2024
c0833d4
Merge branch 'main' into update_vmassdev
Xelu86 Jul 8, 2024
7547438
Merge branch 'main' into update_vmhostassignabledevice
Xelu86 Jul 8, 2024
4eeec28
Merge pull request #3820 from Xelu86/update_vmhostassignabledevice
Xelu86 Jul 8, 2024
c43f887
Merge branch 'main' into update_vmassdev
Xelu86 Jul 8, 2024
fdb5b05
Merge branch 'main' into update_vmgpupartada
Xelu86 Jul 8, 2024
c11ed4b
Merge branch 'main' into update_vmhostassdev
Xelu86 Jul 9, 2024
559f93f
Merge pull request #3842 from Xelu86/update_vmgpupartada
Xelu86 Jul 9, 2024
69447d2
Merge branch 'main' into update_vmassdev
Xelu86 Jul 9, 2024
2510929
Merge branch 'main' into update_vmhostassdev
Xelu86 Jul 9, 2024
d5c42c3
Merge pull request #3844 from Xelu86/update_vmhostassdev
Xelu86 Jul 9, 2024
ac6e6f9
Merge branch 'main' into update_vmassdev
Xelu86 Jul 9, 2024
f94da72
Merge pull request #3843 from Xelu86/update_vmassdev
Xelu86 Jul 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 38 additions & 19 deletions docset/winserver2022-ps/hyper-v/Get-VMHostPartitionableGpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: Gets the host machine’s partitionable GPU.
external help file: Microsoft.HyperV.PowerShell.Cmdlets.dll-Help.xml
Module Name: Hyper-V
ms.date: 09/22/2022
ms.date: 06/12/2024
online version: https://learn.microsoft.com/powershell/module/hyper-v/get-vmhostpartitionablegpu?view=windowsserver2022-ps&wt.mc_id=ps-gethelp
schema: 2.0.0
title: Get-VMHostPartitionableGpu
Expand All @@ -16,49 +16,59 @@ Gets the host machine’s partitionable GPU.
## SYNTAX

### ComputerName (Default)

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

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
```

```powershell
Get-VMHostPartitionableGpu
```

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

### Example 2

```powershell
Get-VMHostPartitionableGpu -ComputerName "SampleHost"
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.
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

```powershell
Get-VMHostPartitionableGpu -name "SampleGPUDeviceIDName"
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.
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](https://go.microsoft.com/fwlink/p/?LinkId=227967) or [Get-CimSession](https://go.microsoft.com/fwlink/p/?LinkId=227966) cmdlet.
The default is the current session on the local computer.

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](/powershell/module/cimcmdlets/new-cimsession)
or [Get-CimSession](/powershell/module/cimcmdlets/get-cimsession) cmdlet. The default is the
current session on the local computer.

```yaml
Type: CimSession[]
Expand All @@ -73,10 +83,10 @@ 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.

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.

```yaml
Type: String[]
Expand All @@ -91,7 +101,9 @@ Accept wildcard characters: False
```

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

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

```yaml
Type: PSCredential[]
Expand All @@ -106,6 +118,7 @@ Accept wildcard characters: False
```

### -Name

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

```yaml
Expand All @@ -121,7 +134,11 @@ 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](https://go.microsoft.com/fwlink/?LinkID=113216).

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
-WarningAction, and -WarningVariable. For more information, see
[about_CommonParameters](/powershell/module/microsoft.powershell.core/about/about_commonparameters).

## INPUTS

Expand All @@ -134,3 +151,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## NOTES

## RELATED LINKS

[Set-VMHostPartitionableGpu](set-vmhostpartitionablegpu.md)
51 changes: 37 additions & 14 deletions docset/winserver2022-ps/hyper-v/Set-VMHostPartitionableGpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: Configures the host partitionable GPU to the number of partitions supported by the manufacturer.
external help file: Microsoft.HyperV.PowerShell.Cmdlets.dll-Help.xml
Module Name: Hyper-V
ms.date: 10/21/2022
ms.date: 06/12/2024
online version: https://learn.microsoft.com/powershell/module/hyper-v/set-vmhostpartitionablegpu?view=windowsserver2022-ps&wt.mc_id=ps-gethelp
schema: 2.0.0
title: Set-VMHostPartitionableGpu
Expand All @@ -16,53 +16,63 @@ Configures the host partitionable GPU to the number of partitions supported by t
## SYNTAX

### ComputerName (Default)

```
Set-VMHostPartitionableGpu [[-ComputerName] <String[]>] [[-Credential] <PSCredential[]>] [-Passthru]
[-PartitionCount <UInt16>] [<CommonParameters>]
```

### CimSession

```
Set-VMHostPartitionableGpu [-CimSession] <CimSession[]> [-Passthru] [-PartitionCount <UInt16>]
[<CommonParameters>]
```

### Object

```
Set-VMHostPartitionableGpu [-HostPartitionableGpu] <VMHostPartitionableGpu[]> [-Passthru]
[-PartitionCount <UInt16>] [<CommonParameters>]
```

### Name

```
Set-VMHostPartitionableGpu [-Passthru] [-Name <String>] [-PartitionCount <UInt16>] [<CommonParameters>]
```

## DESCRIPTION

The `Set-VMHostPartitionableGpu` cmdlet configures the host partitionable GPU to the number of partitions supported by the manufacturer.

## EXAMPLES

### Example 1

```powershell
Set-VMHostPartitionableGpu -ComputerName SampleHost -partitioncount 8
Set-VMHostPartitionableGpu -ComputerName "MyHost" -PartitionCount 8
```

This example partitions a GPU in a specific host into eight partitions.

### Example 2

```powershell
$GPU = Get-VMHostPartitionableGpu -name "SampleGPUDeviceIDName"
Set-VMHostPartitionableGpu -Name $GPU -partitionCount 4
$GPU = Get-VMHostPartitionableGpu -Name "GPUDeviceIDName"
Set-VMHostPartitionableGpu -Name $GPU -PartitionCount 4
```

This example partitions a GPU in a host into four partitions by using the GPU device ID name.

## 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](https://go.microsoft.com/fwlink/p/?LinkId=227967) or [Get-CimSession](https://go.microsoft.com/fwlink/p/?LinkId=227966) cmdlet.
The default is the current session on the local computer.

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](/powershell/module/cimcmdlets/new-cimsession)
or [Get-CimSession](/powershell/module/cimcmdlets/get-cimsession) cmdlet. The default is the
current session on the local computer.

```yaml
Type: CimSession[]
Expand All @@ -77,9 +87,10 @@ Accept wildcard characters: False
```

### -ComputerName
Specifies one or more Hyper-V hosts on the virtual network adapters are to be retrieved. 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.

Specifies one or more Hyper-V hosts on the virtual network adapters are to be retrieved. 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.

```yaml
Type: String[]
Expand All @@ -94,8 +105,9 @@ Accept wildcard characters: False
```

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

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

```yaml
Type: PSCredential[]
Expand All @@ -110,7 +122,8 @@ Accept wildcard characters: False
```

### -HostPartitionableGpu
Full GPU object, obtained by executing 'Get-VMHostPartitionableGpu'.

Full GPU object, obtained by executing `Get-VMHostPartitionableGpu`.

```yaml
Type: VMHostPartitionableGpu[]
Expand All @@ -125,6 +138,7 @@ Accept wildcard characters: False
```

### -Name

Specifies the name of the GPU.

```yaml
Expand All @@ -140,7 +154,9 @@ Accept wildcard characters: False
```

### -PartitionCount
Specifies the number of partitions that the GPU will assign. The number of partitions is defined by the manufacturer.

Specifies the number of partitions that the GPU will assign. The number of partitions is defined by
the manufacturer.

```yaml
Type: UInt16
Expand All @@ -155,6 +171,7 @@ Accept wildcard characters: False
```

### -Passthru

Returns an object for each process that the cmdlet started.

```yaml
Expand All @@ -170,7 +187,11 @@ 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](https://go.microsoft.com/fwlink/?LinkID=113216).

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
-WarningAction, and -WarningVariable. For more information, see
[about_CommonParameters](/powershell/module/microsoft.powershell.core/about/about_commonparameters).

## INPUTS

Expand All @@ -185,3 +206,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## NOTES

## RELATED LINKS

[Get-VMHostPartitionableGpu](get-vmhostpartitionablegpu.md)