Fix format of association xml

This commit is contained in:
Manuel Thalmann 2023-07-26 12:49:32 +02:00
parent 186f6b5db7
commit 3b420f42d4

View file

@ -7,7 +7,9 @@ New-Module {
}
static [xml] GetAppAssociations() {
[xml] $associations = (DISM /Online /Get-DefaultAppAssociations) | Select-Object -Skip 6 | Select-Object -SkipLast 2 | Out-String;
[xml] $associations = [xml]::new();
$associations.PreserveWhitespace = $true;
$associations.LoadXml(((DISM /Online /Get-DefaultAppAssociations) | Select-Object -Skip 6 | Select-Object -SkipLast 2 | Out-String));
return $associations;
}