Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Attributes listed in the "Details" Tab with Powershell

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?

like image 463
ShellOfPower Avatar asked Mar 10 '18 23:03

ShellOfPower


1 Answers

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

like image 116
Nick W. Avatar answered Sep 21 '22 13:09

Nick W.