Remove-UsbDevice

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

Syntax

-UsbDevice  <UsbDevice[]>
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
UsbDevice
UsbDevice[] named
  • pipeline
  • 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

    Feedback

    Was this page helpful?