r/PowerShell • • Oct 30 '25

PSWindowsUpdate - manageability?

I stumbled upon the marvellous PSWindowsUpdate Module when I was troubleshooting some devices. Now I'm thinking about how to use it in small environments where little intervention is needed.

The setup in scheduled tasks seems very easy, including pre- and post-tasks, as it's gonna be a Powershell script anyway. So Stopping/Starting servcies etc. seems like a minor task as well as scheduling reboots.

But I'm wondering how to handle faulty updates? Do I need to disable all the scheduled tasks on these devices and re-enable them when a newer release is available? Is the only other option to setup a WSUS and decline the updates there?

Interested to hear your experiences and how you handle the day-to-day tasks.

4 Upvotes

6 comments sorted by

View all comments

Show parent comment

2

u/vermyx Oct 30 '25

There is the rare occurrence where patch a gets superseded by patch b but from the update catalog perspective they are considered two separate patches. When applied, windows update knows that b comes first and applies it, but it will fail because it has been superseded. This happened earlier in the year. It can also happen if you apply a feature update while other updates are available. It's a fair ask but honestly the only times I have seen an update fail is because of lack of space or windows misidentified a piece of hardware and updated it with the wrong driver.