Fix broken XML document creation

This commit is contained in:
Manuel Thalmann 2024-08-08 05:04:59 +02:00
parent 92df913e97
commit b7ff8f8cac

View file

@ -32,7 +32,9 @@ $null = New-Module {
function Get-DefaultAppAssociations { function Get-DefaultAppAssociations {
[OutputType([xml])] [OutputType([xml])]
param() param()
[xml]::new().LoadXml(((DISM /Online /Get-DefaultAppAssociations) | Select-Object -Skip 6 | Select-Object -SkipLast 2 | Out-String)); $result = [xml]::new();
$result.LoadXml(((DISM /Online /Get-DefaultAppAssociations) | Select-Object -Skip 6 | Select-Object -SkipLast 2 | Out-String));
$result;
} }
<# <#