Alert for removable storage

Hi all,

Does anyone know of a way of being alerted when any type of removable storage has been added to a workstation? I am specifically trying to be alerted when a USB drive is present.

Thank you

If all your devices are PowerShell 4 or above, you can do:

Get-Volume | Where-Object {$_.DriveType -eq "Removable"}

Otherwise, you can use:

Get-WMIObject -Class Win32_Volume | Where-Object {$_.DriveType -eq 2}

As 2 = Removable Drives