Fix broken XML document creation
This commit is contained in:
parent
b2619ea7a6
commit
be4a3228da
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
<#
|
<#
|
||||||
|
|
Loading…
Reference in a new issue