I'm trying to retrieve some extended file attributes (mp3 files to be precise) listed in the "Details" tab, section "Media" with PowerShell.
There are additional attributes like bitrate, genre, album, etc.
Sadly Get-ItemProperty -Path $pathtofile | Format-List does not return those.
Get-ItemProperty -Path $pathtofile | Get-Member does not list them either.
Strange enough, Get-ItemProperty returns the same output as Get-ChildItem.
I've tried different files (even non mp3s) and PowerShell does not list the "detail" attributes anywhere.
Where does windows store these? Also how can one list them?
Update 3; I found a better script that should do exactly what you want provided by the incredible "Hey! Scripting Guy" blog. They already built a function that lets you view all of the details of music/mp3 files.
Blog post
https://blogs.technet.microsoft.com/heyscriptingguy/2014/02/05/list-music-file-metadata-in-a-csv-and-open-in-excel-with-powershell/
Function
https://gallery.technet.microsoft.com/scriptcenter/get-file-meta-data-function-f9e8d804
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With