Created
March 25, 2019 14:38
-
-
Save ljmccarthy/865b0e4683dc005db01281e49c9424b1 to your computer and use it in GitHub Desktop.
List removeable drives using WMI query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-WmiObject -query "SELECT * FROM Win32_DiskDrive WHERE MediaType = 'Removable Media'" | Select-Object * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment