Skip to content

Commit

Permalink
Update Maintenance.bat
Browse files Browse the repository at this point in the history
- Remove temp folder clean-up
- Add .NET optimization commands
  • Loading branch information
Espionage724 authored Jul 21, 2020
1 parent 4607c05 commit 5bc1008
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Maintenance.bat
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
"%windir%\microsoft.net\Framework\v4.0.30319\ngen.exe" update /force /queue
"%windir%\microsoft.net\Framework64\v4.0.30319\ngen.exe" update /force /queue
"%windir%\microsoft.net\Framework\v4.0.30319\ngen.exe" executequeueditems
"%windir%\microsoft.net\Framework64\v4.0.30319\ngen.exe" executequeueditems

"%windir%\system32\Dism.exe" /online /Cleanup-Image /StartComponentCleanup /ResetBase /RestoreHealth
"%windir%\system32\sfc.exe" /scannow

"%windir%\system32\cleanmgr.exe" /sageset:65535
"%windir%\system32\cleanmgr.exe" /sagerun:65535
rmdir "%temp%" /S /Q
mkdir "%temp%"
rmdir "%windir%\temp" /S /Q
mkdir "%windir%\temp"

"%windir%\system32\dfrgui.exe"

0 comments on commit 5bc1008

Please sign in to comment.