Get Attributes listed in the "Details" Tab with Powershell

ShellOfPower picture ShellOfPower · Mar 11, 2018 · Viewed 24.3k times · Source

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?

Answer

Nick W. picture Nick W. · Mar 13, 2018

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