Fix incorrect code
This commit is contained in:
parent
a892256374
commit
023364b4b1
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ $null = New-Module {
|
||||||
$writerSettings.Indent = $true;
|
$writerSettings.Indent = $true;
|
||||||
$writerSettings.Encoding = [System.Text.UTF8Encoding]::new();
|
$writerSettings.Encoding = [System.Text.UTF8Encoding]::new();
|
||||||
$writer = [System.Xml.XmlWriter]::Create($configFile.FullName, $writerSettings);
|
$writer = [System.Xml.XmlWriter]::Create($configFile.FullName, $writerSettings);
|
||||||
$associations.Save($writer);
|
$document.Save($writer);
|
||||||
$writer.Dispose();
|
$writer.Dispose();
|
||||||
DISM /Online "/Import-DefaultAppAssociations:$($configFile.FullName)";
|
DISM /Online "/Import-DefaultAppAssociations:$($configFile.FullName)";
|
||||||
Remove-Item $configFile;
|
Remove-Item $configFile;
|
||||||
|
|
Loading…
Reference in a new issue