- Now the script will not be executed by PowerShell ISE;
- Moved from the "Read-Host" cmdlet to $Host.UI.PromptForChoice();
- Updated "Create a task in the Task Scheduler to start Windows cleaning up";
- A toast notification will be activated before starting cleaning up;
- Now cleanmgr.exe window starts minimized;
- Now using DISM to clean up unused Windows updates instead of cleanmgr.exe
DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart
- Minor changes;
- Thanks westlife for the tips.