Hi guys,
very new sysadmin here.
I've currently taken over WSUS management and have found that we haven't been updating client agent machines for several years now...
I went through the process of cleaning up superseded updates, but have found that each of my clients need around 60-70 updates.
I've tested downloading and installing all 70 at once on a test machine, but this just causes it to crash.
Is there a way in PowerShell to group updates into several batches e.g., 20-30 at a time * 3 times = 60 updates, so that my machines don't freak?
I'm considering using PSWindowsUpdate as I can simply use Get-WindowsUpdate to find available updates.
The next steps are to divide the updates into batches of 20-30, probably by using a Foreach loop, and then simply install those updates, restart my pc, and then repeat till the other batches are done too.
I think I have the logic behind this, but I am too inexperienced in scripting to even know how I would loop through these updates, what sort of objects they are and where/how I could find/reference them in my script.
Any help would be appreciated, thanks!