We have to roll out upgrades from earlier versions of w10 to 20H2 in our environment and WSUS is generally being WSUS. It's difficult to tell windows update to do something on demand. Our GP is set up as best as we can and does the job, but it can be difficult to get a picture of what is happening at any exact moment.
I've discovered quite a few powershell tips to get a better picture of what's going on (making machines report in on demand), and even prod things along, which mostly work, but for the upgrade (which can take a few hours) it's incredibly difficult to see what's actually going on and how far along the process it's got.
At the moment it's basically a case of waiting 3 to 4 hours (after active hours) and then seeing if they've updated or not, which when we've only got a window of 3 to 4 hours in an evening to make sure they've actually started upgrading is incredibly frustrating!
Basically I need a way to see this type of status remotely:
Preferably I'd like to do this with powershell/wmi or something similar. If there's a one-liner (or almost one-liner) that will do it for one remote machine, that would probably be ideal as I can incorporate it into some other scripts I have for checking remote status (online/logged on users/etc).
I'm not looking to just be able to see which patches are needed, and whether they have downloaded or not (I've already got to that point). I'm more interested in the progress (% done if possible) of the installation.
If it helps I'm currently looking at WU Agent Object Model to see if there's something I can use there, as we use some methods in there to force machines to check and report their status.