使用 Powershell 获取“详细信息”选项卡中列出的属性

She*_*wer 7 powershell attributes file id3v2

我正在尝试使用 PowerShell 检索“详细信息”选项卡的“媒体”部分中列出的一些扩展文件属性(准确地说是 mp3 文件)。

有喜欢的附加属性bitrategenrealbum,等。

可悲的Get-ItemProperty -Path $pathtofile | Format-List是不会返回那些。

Get-ItemProperty -Path $pathtofile | Get-Member 也没有列出它们。

很奇怪,Get-ItemProperty返回与Get-ChildItem.
我尝试了不同的文件(甚至非 mp3),而 PowerShell 没有在任何地方列出“详细信息”属性。

Windows 在哪里存储这些?又怎么能一一列举呢?

Nic*_* W. 2

更新3;我发现了一个更好的脚本,它应该完全按照令人难以置信的“Hey!Scripting Guy”博客提供的方式执行您想要的操作。他们已经构建了一个功能,可以让您查看音乐/mp3 文件的所有详细信息。

博客文章
https://blogs.technet.microsoft.com/heyscriptingguy/2014/02/05/list-music-file-metadata-in-a-csv-and-open-in-excel-with-powershell/

功能
https://gallery.technet.microsoft.com/scriptcenter/get-file-meta-data-function-f9e8d804

  • “获取文件元数据”功能似乎不再可用。还有其他来源吗? (4认同)
  • @PeterCo我用谷歌搜索:--> PowerShell“Get-FileMetaData”<--并得到这个:https://www.powershellgallery.com/packages/FC_SysAdmin/5.0.0/Content/public%5CGet-FileMetaData.ps1 Microsoft打破了当他们退休 technet 时的一切。 (3认同)