aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/update
diff options
context:
space:
mode:
authorCristian Cezar Moisés <[email protected]>2024-10-26 02:37:32 +0000
committerCristian Cezar Moisés <[email protected]>2024-10-26 02:37:32 +0000
commit8359a7b072f4b50e16fb4352a749571676ef9e65 (patch)
treecce848caa4de2cf00f4074e9f4106d6a35d0c60c /scripts/update
Softwares pack1
Diffstat (limited to 'scripts/update')
-rw-r--r--scripts/update/LEIA-ME.md43
-rw-r--r--scripts/update/README.md37
-rw-r--r--scripts/update/clean.bat15
-rw-r--r--scripts/update/gorilazadah.ps18
4 files changed, 103 insertions, 0 deletions
diff --git a/scripts/update/LEIA-ME.md b/scripts/update/LEIA-ME.md
new file mode 100644
index 0000000..fb7f164
--- /dev/null
+++ b/scripts/update/LEIA-ME.md
@@ -0,0 +1,43 @@
+# GORILAZADAH - Automação
+Script incrível para limpar e atualizar seu Windows
+
+<img src="https://i.ibb.co/yVtFCzX/gorilazadah.png">
+
+
+> ##### Você não tem tempo para verificar atualizações e softwares do Windows sempre?
+#### Este script é para você!
+_______
+## Download
+1.) Baixe o **gorilazadah.ps1** e o **clean.bat**
+Ou baixe tudo e descompacte. (Você quem sabe).
+
+## Uso:
+Na GUI do Windows, execute as seguintes etapas:
+
+1.) Abra o Editor de Política de Grupo Local pressionando "Win + R" e digitando: gpedit.msc seguido de Ctrl + Shift + Enter.
+
+2.) Navegue até Computador **Configuração\Configurações do Windows\Scripts** (Inicialização/Desligamento).
+
+3.) No painel de resultados, clique duas vezes em Desligar.
+
+4.) Selecione a guia PowerShell
+
+5.) Na caixa de diálogo Propriedades de desligamento, clique em Adicionar.
+
+6.) Na caixa Nome do script, digite o caminho para o script ou clique em Procurar para pesquisar gorilazadah.ps1 na pasta compartilhada Netlogon no controlador de domínio.
+
+7.) Agora adicione o clean.bat aos scripts (Configuração\Configurações do Windows\Scripts) (clique duas vezes em Desligar).
+
+Todo o cache é limpo pelo clean.bat
+(inclui todos os temporários do Microsoft Teams).
+
+Agora tudo o que o administrador precisa fazer é reiniciar o computador
+para executar as atualizações do Windows sem problemas.
+
+As mesmas etapas podem ser executadas no GPO
+para realizar a mesma coisa em várias máquinas Windows ao mesmo tempo.
+**#profit**
+
+
+
+
diff --git a/scripts/update/README.md b/scripts/update/README.md
new file mode 100644
index 0000000..b601622
--- /dev/null
+++ b/scripts/update/README.md
@@ -0,0 +1,37 @@
+# GORILAZADAH - Automation
+> Awesome Script for Clean and Update your Windows
+
+> Para a versão em português clique [🇧🇷](https://codeberg.org/berkeley/gorilazadah/blob/main/LEIA-ME.md)
+
+<img src="https://github.com/cristiancmoises/gorilazadah/assets/86272521/7f99f8b2-f13d-4740-b553-c6c0f2b58dd7" height=300 width=560>
+
+___________________
+
+ ###### You dont have time for checking windows updates and softwares every time?
+ #### This script is for you!
+
+ ## Download
+ 1.) Download gorilazadah.ps1 and clean.bat Or download everything and unzip. (You know).
+ ## Usage:
+ 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** \ No newline at end of file
diff --git a/scripts/update/clean.bat b/scripts/update/clean.bat
new file mode 100644
index 0000000..90aef24
--- /dev/null
+++ b/scripts/update/clean.bat
@@ -0,0 +1,15 @@
+@ECHO OFF
+DEL /S /Q /F "%TEMP%\*.*"
+DEL /S /Q /F "%TMP%\*.*"
+DEL /S /Q /F "%USERPROFILE%\Local Settings\Temp\*.*"
+DEL /S /Q /F "%LOCALAPPDATA%\Temp\*.*"
+DEL /S /Q /F "%WINDIR%\temp\*.*"
+FOR /D %%p IN ("%WINDIR%\Temp\*") DO RMDIR /S /Q "%%p"
+del /f /q "%appdata%\Microsoft\teams\application cache\cache\*.*" > nul 2>&1
+del /f /q "%appdata%\Microsoft\teams\blob_storage\*.*" > nul 2>&1
+del /f /q "%appdata%\Microsoft\teams\databases\*.*" > nul 2>&1
+del /f /q "%appdata%\Microsoft\teams\GPUcache\*.*" > nul 2>&1
+del /f /q "%appdata%\Microsoft\teams\IndexdDB\*.db" > nul 2>&1
+del /f /q "%appdata%\Microsoft\teams\Local Storage\*.*" > nul 2>&1
+del /f /q "%appdata%\Microsoft\teams\tmp\*.*" > nul 2>&1
+EXIT \ No newline at end of file
diff --git a/scripts/update/gorilazadah.ps1 b/scripts/update/gorilazadah.ps1
new file mode 100644
index 0000000..dac6a0d
--- /dev/null
+++ b/scripts/update/gorilazadah.ps1
@@ -0,0 +1,8 @@
+Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
+choco feature enable -n=allowGlobalConfirmation
+choco feature enable -n useFipsCompliantChecksums
+choco upgrade all
+choco install pswindowsupdate
+Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d -Confirm:$false
+Install-WindowsUpdate -MicrosoftUpdate -AcceptAll
+Get-WuInstall -AcceptAll -IgnoreReboot \ No newline at end of file