description | external help file | Module Name | ms.date | online version | schema | title |
---|---|---|---|---|---|---|
Retrieves information about an assignable device to a virtual machine host. |
Microsoft.HyperV.PowerShell.Cmdlets.dll-Help.xml |
Hyper-V |
06/12/2024 |
2.0.0 |
Get-VMHostAssignableDevice |
Retrieves device information assigned to a virtual machine (VM) host.
Get-VMHostAssignableDevice [-InstancePath <String>] [-LocationPath <String>]
[-ResourcePoolName <String[]>] [-CimSession <CimSession[]>] [-ComputerName <String[]>]
[-Credential <PSCredential[]>] [<CommonParameters>]
The Get-VMHostAssignableDevice
cmdlet retrieves information about devices that can be assigned to
a virtual machine host. This can include devices such as GPUs, network adapters, or storage
controllers that are physically present on the host system. The cmdlet can filter devices by their
instance path or location path.
Get-VMHostAssignableDevice
This example retrieves all assignable devices on the host computer.
Get-VMHostAssignableDevice -ComputerName "MyHost"
In this example, the cmdlet retrieves all assignable devices from the computer named MyHost.
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: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies one or more Hyper-V hosts from which the assignable devices 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.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies one or more user accounts that have permission to perform this action. The default is the current user.
Type: PSCredential[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Represents the Device Instance path in the host machine.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the location path to the assignable device.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Retrieves the name of the resource pool to which the device is assigned.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.