iNNOKENTIY21
Silver Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Код: $Aliases = @() foreach ($AppxPackage in Get-AppxPackage) { $Path = $AppxPackage.InstallLocation $ChildPath = 'AppxManifest.xml' $AppxManifestPath = Join-Path -Path $Path -ChildPath $ChildPath $AppxManifest = [xml] (Get-Content -Path $AppxManifestPath) $Aliases += [pscustomobject] @{ Name = $AppxPackage.Name Alias = $AppxManifest.Package.Applications.Application.Extensions. Extension.AppExecutionAlias.ExecutionAlias.Alias Protocols = $AppxManifest.Package.Applications.Application.Extensions. Extension.Protocol.Name } } $Aliases | Where-Object { $PSItem.Alias -or $PSItem.Protocols } |
|