Category Archives: WSUS

Windows Updates CIM classes

When Windows 10 and Server 2016 were released they contained a new CIM namespace – ROOT/Microsoft/Windows/WindowsUpdate This contained a CIM class MSFT_WUOperationsSession that had 2 very useful methods – ScanForUpdates and  ApplyApplicableUpdates. These methods enabled you to find and install … Continue reading

Posted in PowerShell and CIM, WSUS | 1 Comment

Applying updates through WSUS

I like to keep the virtual machines in my test lab up to date so have a WSUS server to download and manage updates. The difficulty is applying the updates. With Windows 2012 R2 I used a module that would … Continue reading

Posted in PowerShell and CIM, PowerShell and WMI, Windows Server 2016, WSUS | Leave a comment

Quick test for updates that aren’t installed

I want a quick test to determine if any of the updates I’d approved hadn’t been installed on all of the relevant machines. Get-WsusUpdate -Approval Approved | where InstalledOrNotApplicablePercentage -ne 100 Get the list of approved updates and filter on … Continue reading

Posted in Powershell, WSUS | Leave a comment

Quick update check

Want to check on any updates that haven’t been fully applied in your environment. Run this on your WSUS server (2012 R2) £> Get-WsusUpdate -Classification All -Status Any -Approval AnyExceptDeclined | where InstalledOrNotApplicablePercentage -ne 100 You can modify the filters: … Continue reading

Posted in Powershell, Windows Server 2012 R2, WSUS | Leave a comment

Starting VMs based on WSUS state

I use WSUS in my lab to update machines – means I only have to download updates once. The issue is that I have to start the VMs so they can communicate with the WSUS server. WSUS will start to … Continue reading

Posted in Hyper-V, Powershell, WSUS | Leave a comment

Starting virtual machines for WSUS

My test environment usually has a dozen or so machines at any one time. Some of these are short lived and used for a particular piece of testing – others are kept for  years. I decided that I wanted to … Continue reading

Posted in Hyper-V, Windows Server 2012, WSUS | Leave a comment