Fix format of association xml
This commit is contained in:
parent
186f6b5db7
commit
3b420f42d4
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue