Awesome Script for Clean and Update your Windows
Para a versão em português clique 🇧🇷
1.) Download gorilazadah.ps1 and clean.bat Or download everything and unzip. (You know).
In the windows gui perform the following steps:
1.) Open the Local Group Policy Editor by hitting "Win + R" and typing: gpedit.msc followed by Ctrl + Shift + Enter.
2.) Navigate to Computer **Configuration\Windows Settings\Scripts (Startup/Shutdown).
3.) In the results pane, double-click Shutdown.
4.) Select the powershell tab
5.) In the Shutdown Properties dialog box, click Add.
6.) In the Script Name box, type the path to the script, or click Browse to search gorilazadah.ps1 in the Netlogon shared folder on the domain controller.
7.) Now add the clean.bat into scripts (Configuration\Windows Settings\Scripts)(double-click Shutdown).
All cache are cleaned by the clean.bat (Include all temp from Microsoft Teams) Now all an administrator has to do is reboot the computer to perform windows updates smoothly. The same steps can be performed in GPO to acomplish the same thing on multiple Windows machines at the same time. #profit