Remove-UsbDevice
This cmdlet removes the specified USB devices from a virtual machine.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
UsbDevice[] | named |
|
Specifies the USB devices you want to remove. |
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.