про MSO не пробовал но вот вам может помочь
пример из
https://blogs.technet.microsoft.com/...ed-properties/
```
# origin
https://blogs.technet.microsoft.com/...ed-properties/
function Get-FileMetaData {
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
ValueFromPipeline = $true,
ValueFromPipelineByPropertyName = $true)]
[Alias('FullName', 'PSPath')]
[string[]]$Path
)
begin {
$oShell = New-Object -ComObject Shell.Application
}
process {
$Path | ForEach-Object {
if (Test-Path -Path $_ -PathType Leaf) {
$FileItem = Get-Item -Path $_
$oFolder = $oShell.Namespace($FileItem.DirectoryName)
$oItem = $oFolder.ParseName($FileItem.Name)
$props = @{}
0..287 | ForEach-Object {
$ExtPropName = $oFolder.GetDetailsOf($oFolder.Items, $_)
$ExtValName = $oFolder.GetDetailsOf($oItem, $_)
if (-not $props.ContainsKey($ExtPropName) -and
($ExtPropName -ne '')) {
$props.Add($ExtPropName, $ExtValName)
}
}
New-Object PSObject -Property $props
}
}
}
end {
$oShell = $null
}
}
```
пример использования -
```
. .\example.ps1
Get-FileMetaData -path 'C:\Windows\Installer\2ccc495.msp' |
select-object -property name,'Program Name','Item Type','Comments','Title','Subject' |format-list
Name : 2ccc495.msp
Program name : Windows Installer XML - SOC (3.6.3520.0)
Item type : Windows Installer Patch
Comments : KB2707250
Title : KB2707250
Subject : Hotfix for Microsoft Visual Studio 2012 - KB2707250
```
поскольку это `Shell.Application` то можно перевисать на VBS или MS Jscript