I was browsing the MSDN Blogs and came across this nifty script. If your a fan of powershell and been looking for a way to attach a usb device to your virtual machine you can use the following script.

# Connect to Virtual PC
$vpc = new-object -com VirtualPC.Application
# Get VM name
$vmName = Read-host "Specify the name of the virtual machine that you want to use"
# List available USB devices
write-host "The following USB devices are available:"
$vpc.USBDeviceCollection | select -ExpandProperty DeviceString
# Get the USB device name
$usb = Read-host "Enter the name of the USB device that you want to connect to the virtual machine"
# Get the VM object
$vm = $vpc.findVirtualMachine($vmName)
# Get the USB object
$usbDevice = $vpc.USBDeviceCollection | ? {$_.DeviceString -eq $usb} | select -first
# Attach the device - this will fail if the VM is not running
Credit goes to Virtual PC Guys Blog: Ben Armstrong, Virtualization Program Manager