How to find metadata is available from file-properties - PowerShell Help - PowerShell Forums

PHOTO EMBED

Sun Nov 17 2024 18:28:17 GMT+0000 (Coordinated Universal Time)

Saved by @baamn #powershell #metadata #comobject #shell.application

$Directory = 'D:\Users\Public\Public.Language\Pronounce it Perfectly in Spanish 2e\Pronounce it Perfectly in Spanish 2e.Down.Load'
$Shell = New-Object -ComObject Shell.Application
$Folder = $Shell.Namespace($Directory)

1..512 | ForEach-Object {
    $prop = $Folder.GetDetailsOf($null, $_)
                
    if($prop){
        [PSCustomObject] @{
            Number   = $_
            Property = $prop
        }
    }
}
content_copyCOPY

If you want to get a list of properties and their corresponding number, you can use this snippet.

https://forums.powershell.org/t/how-to-find-metadata-is-available-from-file-properties/23751