Get-WmiObject -Class Win32_DiskDrive | Select-Object PNPDeviceID, MediaType ===> what will be MediaType for External Hard Drives?

35 Views Asked by At

when i connect External Hard Drive and type in powershell as administrator:

Get-WmiObject -Class Win32_DiskDrive | Select-Object PNPDeviceID, MediaType

i get MediaType as "External hard disk media" for external one and "Fixed hard disk media" for internal hard disk.

My question is: Is this MediaType for external Hard Drives is consistent, can i use this to filter externals or will it change at some place? And should i consider translation of it to different languages if system lang is not english?

This is all, Thanks in advance for your response

0

There are 0 best solutions below