Adding Install All Updates and extra categories

This commit is contained in:
silversword411 2021-03-29 09:22:51 -04:00
parent ddb610f1bc
commit 9f92746aa0
2 changed files with 30 additions and 2 deletions

View File

@ -238,13 +238,23 @@
"submittedBy": "https://github.com/dinger1986",
"name": "Event Viewer - Check for Bluescreens",
"description": "This will check for Bluescreen events on your system",
"shell": "powershell"
"shell": "powershell",
"category": "TRMM (Win):Monitoring"
},
{
"filename": "Rename_Computer.ps1",
"submittedBy": "https://github.com/silversword411",
"name": "Rename Computer",
"description": "Rename computer. First parameter will be new PC name. 2nd parameter if yes will auto-reboot machine",
"shell": "powershell"
"shell": "powershell",
"category": "TRMM (Win):Other"
},
{
"filename": "Win_MS_Install_All_Updates.ps1",
"submittedBy": "https://github.com/dinger1986",
"name": "Install all Updates",
"description": "Install All updating for Windows 10 using powershell",
"shell": "powershell",
"category": "TRMM (Win):Updates"
}
]

View File

@ -0,0 +1,18 @@
$ErrorActionPreference = 'silentlycontinue'
if (Get-Module -ListAvailable -Name NuGet) {
Write-Host "NuGet exists"
}
else {
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
}
if (Get-Module -ListAvailable -Name PSWindowsUpdate) {
Write-Host "PSWindowsUpdate exists"
}
else {
Install-Module -Name PSWindowsUpdate -force
}
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
Get-WindowsUpdate -install -acceptall