201
❤️🅱️
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
Get-Disk would have sufficed here, no real need to use WMI here. That said, you would still need to filter USB device and select properties you want to retrieve.
And unrelated, but if WMI class needs to be queried, Get-CimInstance is the preferred method instead of Get-WmiObject for quite some time.