Remove-UsbDevice Command | Vmware PowerCLI Reference

Remove-UsbDevice

This cmdlet removes the specified USB devices from a virtual machine.

Syntax

Remove-UsbDevice
-UsbDevice < UsbDevice[] >
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
UsbDevice UsbDevice[] named
  • pipeline
Specifies the USB devices you want to remove.
optional ProgressAction ActionPreference named

Output

Examples

Example 1

Get-UsbDevice -VM (Get-VM -Location $vmhost) | Remove-UsbDevice

Retrieves the virtual machines on the host stored in the $vmhost variable and removes their USB devices.

Related Commands

UsbDevice

This cmdlet retrieves the USB devices available on a vCenter Server system.

This cmdlet removes the specified USB devices from a virtual machine.