PowerCLI Reference

Remove-PassthroughDevice

Synopsis

This cmdlet removes the specified pass-through devices.

Syntax

Remove-PassthroughDevice [-PassthroughDevice] <PassThroughDevice[]> [-Confirm] [-WhatIf] [<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.