attempt to fix wu issues

commented out the DISM Cleanup command and WinSxS\Backup folder removal
This commit is contained in:
h3r0 2023-11-19 17:17:33 +00:00 committed by GitHub
parent 3c9e141d77
commit a3f0d03a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ $foldersToRemove = @(
"System32\LogFiles",
"System32\sru"
"Temp",
"WinSxS\Backup"
# "WinSxS\Backup"
# "Panther",
# "Prefetch"
)
@ -81,5 +81,5 @@ Start-ScheduledTask -TaskPath "\Microsoft\Windows\DiskCleanup\" -TaskName "Silen
# Write-Host "Cleaning up Retail Demo Content"
# Start-ScheduledTask -TaskPath "\Microsoft\Windows\RetailDemo\" -TaskName "CleanupOfflineContent"
Write-Host "Cleaning up the WinSxS Components"
DISM /Online /Cleanup-Image /StartComponentCleanup
# Write-Host "Cleaning up the WinSxS Components"
# DISM /Online /Cleanup-Image /StartComponentCleanup