-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.ps1
More file actions
executable file
·31 lines (28 loc) · 1.08 KB
/
Copy pathupdate.ps1
File metadata and controls
executable file
·31 lines (28 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# ATUALIZADOR DO WINDOWS
cls
Install-PackageProvider -Force -Confirm:$False -Name NuGet
Install-Module -Force -Confirm:$False PSWindowsUpdate
#INSTALL WINGET
Install-PackageProvider -Force -Confirm:$False -Name PackageManagement
Install-PackageProvider -Force -Confirm:$False -Name Cobalt
Install-PackageProvider -Force -Confirm:$False -Name winget
# Instalar o Cholatey
cls
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')) > $null
Install-PackageProvider -Force -Confirm:$False -Name NuGet
Install-Module -Force -Confirm:$False PSWindowsUpdate
Clear-Host
choco upgrade -y all
Start-Sleep 10
Clear-Host
winrm qc -force
Start-Sleep 10
Clear-Host
Get-WindowsUpdate -Install -Confirm:$False -ForceInstall -IgnoreReboot
Start-Sleep 10
Clear-Host
winget upgrade --all
Start-Sleep 10
Clear-Host
Write-Output "Atualização Finalizada..."
Restart-Computer -Force