PowerCLI Reference

Remove-PassthroughDevice

Synopsis

This cmdlet removes the specified pass-through devices.

Syntax

Remove-PassthroughDevice [-PassthroughDevice] <PassThroughDevice[]> [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Add-PassthroughDevice
Get-PassthroughDevice

Detailed Description

This cmdlet removes the specified pass-through devices. You can remove only those pass-through devices that are retrieved from virtual machines.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
PassthroughDevicePassThroughDevice[]Specifies the pass-through devices you want to remove. You can remove only those pass-through devices that are retrieved from virtual machines.truetrue (ByValue)
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falsefalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse

Return Type

None

Notes

Examples

-------------- Example 1 --------------

Get-PassthroughDevice -VM VM | Remove-PassthroughDevice

Removes all pass-through devices of the VM virtual machine.


Copyright © VMware, Inc. All rights reserved.