From af06d5ab5748183127a4d778be79dbfb322975c8 Mon Sep 17 00:00:00 2001 From: FrysCrypto <119890880+FrysCrypto@users.noreply.github.com> Date: Fri, 12 Sep 2025 01:46:20 -0500 Subject: [PATCH] Update tiny11maker.ps1 -StartComponentCleanup switch no longer supported in most recent powershell versions --- tiny11maker.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny11maker.ps1 b/tiny11maker.ps1 index 3d8b9f7..c24757f 100644 --- a/tiny11maker.ps1 +++ b/tiny11maker.ps1 @@ -387,7 +387,7 @@ reg unload HKLM\zNTUSER | Out-Null reg unload HKLM\zSOFTWARE | Out-Null reg unload HKLM\zSYSTEM | Out-Null 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 ' ' Write-Output "Unmounting image..."