Quantcast
Channel: Spiceworks Community
Viewing all articles
Browse latest Browse all 9

How would you locate a USB drive in your network?

$
0
0

you could use a powershell script to query your systems (they have to be on)

http://blogs.msdn.com/b/powershell/archive/2007/02/24/displaying-usb-devices-using-wmi.aspx Opens a new window

here is a very quick and dirty script. look for the device name or manufacture name in the results.

Powershell
$cred=Get-Credentialdomain\administrator$dc=New-PSSession-ComputerNamecomputer1,computer2-Credential$credInvoke-Command-Session$dc-ScriptBlock{gwmi Win32_USBControllerDevice|%{[wmi]($_.Dependent)}|Sort Manufacturer,Description,DeviceID|Where-Object{$_.DeviceID-like"USBSTOR\*"}|Ft -GroupByManufacturerDescription,Service,DeviceID}


Viewing all articles
Browse latest Browse all 9

Latest Images

Trending Articles





Latest Images