mirror of
https://github.com/ntdevlabs/tiny11builder.git
synced 2025-09-16 14:18:01 +02:00
Update tiny11maker.ps1
-StartComponentCleanup switch no longer supported in most recent powershell versions
This commit is contained in:
@@ -387,7 +387,7 @@ reg unload HKLM\zNTUSER | Out-Null
|
|||||||
reg unload HKLM\zSOFTWARE | Out-Null
|
reg unload HKLM\zSOFTWARE | Out-Null
|
||||||
reg unload HKLM\zSYSTEM | Out-Null
|
reg unload HKLM\zSYSTEM | Out-Null
|
||||||
Write-Output "Cleaning up image..."
|
Write-Output "Cleaning up image..."
|
||||||
Repair-WindowsImage -Path $ScratchDisk\scratchdir -StartComponentCleanup -ResetBase
|
dism.exe /Image:$ScratchDisk\scratchdir /Cleanup-Image /StartComponentCleanup /ResetBase
|
||||||
Write-Output "Cleanup complete."
|
Write-Output "Cleanup complete."
|
||||||
Write-Output ' '
|
Write-Output ' '
|
||||||
Write-Output "Unmounting image..."
|
Write-Output "Unmounting image..."
|
||||||
|
Reference in New Issue
Block a user