Having an issue that I cannot seem to find any information on.
I'm using the Get-WindowsUpdate and Get-WUList modules in PowerShell to attempt to download and install Windows updates.
$windowsUpdateStatus = Get-WUList
while($windowsUpdateStatus.Value[0].Message -ne ""){
Get-WindowsUpdate -Download -MicrosoftUpdate -AcceptAll -Install -AutoReboot
$windowsUpdateStatus = Get-WUList
}
*Note that the conditionals in the script block above may not be 100% accurate
When this runs I can see that a handful of updates are installed in the console however when I go to the Windows Update UI it still shows the updates that were previously installed via the Get-WindowsUpdate call still need to be installed.
I've done checks with the Get-WUHistory and all other commands and they also show that the update is installed.
Has anybody else encountered this issue and is there a way to force that Windows Update GUI to refresh (other than by clicking the "Install Now" button)