Modify Resetbase command to use DandIEnv

This commit is contained in:
rbalsleyMSFT
2024-05-24 18:12:43 -07:00
parent 4932777f4f
commit 8f81e69159
+1 -1
View File
@@ -2270,7 +2270,7 @@ try {
WriteLog "Removing $KBPath" WriteLog "Removing $KBPath"
Remove-Item -Path $KBPath -Recurse -Force | Out-Null Remove-Item -Path $KBPath -Recurse -Force | Out-Null
WriteLog "Clean Up the WinSxS Folder" WriteLog "Clean Up the WinSxS Folder"
Dism /Image:$WindowsPartition /Cleanup-Image /StartComponentCleanup /ResetBase | Out-Null Invoke-Process cmd "/c ""$DandIEnv"" && Dism /Image:$WindowsPartition /Cleanup-Image /StartComponentCleanup /ResetBase" | Out-Null
WriteLog "Clean Up the WinSxS Folder completed" WriteLog "Clean Up the WinSxS Folder completed"
} }
catch { catch {