This requires Powershell V5. The powershell script to install the module is:
$psversion = $PSVersionTable.PSVersion.Major
if ($psversion -ge 5){
Install-PackageProvider -Name NuGet -Force
Install-Module -Name PSWindowsUpdate -Force -Scope AllUsers
Get-WUServiceManager
}else{
echo "Error, PS is out of date"
}
Then, to run it simple use:
"Get-WuInstall -AcceptAll -IgnoreUserInput -AutoReboot -Confirm:$false -nottitle 'preview' -updatecount 30"
(Update count just limits the amount it does at once, so if there is an error with one it doesn't undo them all. Good for computers very out of date.)
The github for this module is located at:
https://github.com/joeypiccola/PSWindowsUpdate
Subscribe to:
Post Comments (Atom)
Deploy Chocolatey packages with Microsoft Intune
Deploying Chocolatey packages using Intune Let me start by saying this is currently working with Chocolatey version 2.2.2 in August of 2023...
-
If you are recieving the following error: The session setup from the computer COMPUTERNAME failed to authenticate. The name(s) of the acco...
-
Assuming you had made a backup of your wallet by going to File> Backup Wallet restoring is rather simple. When you reinstall Dogecoin W...
-
Relevant Errors: Failed to prepare guest for hot backup. Error: VSSControl: -2147212529 Backup job failed. Discovery phase failed. Can...
No comments:
Post a Comment