My computer was installing windows updates today in full screen after restarting my computer, or at least it says it was.

windows update installing configuring on full screen restart

Afterwards when using Windows I looked at "view update history" in the windows update screen of settings, I saw an update with today's date that failed to install. After closing the window and opening it again, this failed update disappeared.

view update history windows 10

So if windows update ran when I restarted my computer with the "windows update is installing do not turn off your computer", where is this windows update to be seen?

Update: Also I just installed a different windows update to the one mentioned earlier, that doesn't appear in my update history, so where is it?

  • It should be displayed in your screenshot (Windows Updates History). There are commands that could be ran but it pulls from the same location. – Ramhound Jan 15 at 23:43
  • Also, try restarting again. Let it sit running for 30 minutes (to let it install updates if some are to be updated). Restart, allow to run 10 minutes after restarting. Then check update history again. – John Jan 16 at 0:04
  • Get-WUIsPendingReboot should display pending updates, but I suspect, a good old reboot is necessary – Ramhound Jan 16 at 0:29
  • "Ran different update" Open cmd.exe with Run as Administrator, dism.exe /online /cleanup-image /startcomponentcleanup then dism.exe /cleanup-image /restorehealth then SFC /SCANNOW Complete, restart, run Windows Update again. – John Jan 16 at 0:59
  • Running Get-WUIsPendingReboot gives me a provider load failure error. – desbest Jan 16 at 1:13

You can try this, this is a PowerShell script, first, to open PowerShell:

Win+R>>type PowerShell>>Ctrl+Shift+Enter

Then, once you are in PowerShell, paste this line of code:

(Get-WindowsPackage -Online | Where {$_.PackageState -match "Staged|InstallPending"}).PackageName

It will display the packagenames of all pending Windows update packages.

You can try this:

Get-WindowsPackage -Online

To get all Windows update packages present in your computer;


Get-WindowsPackage -Online | Where {$_.PackageState -match "Staged|InstallPending"}

To get all information available about the pending updates.

You can then narrow down the list further by installation date:

Get-WindowsPackage -Online | Where {$_.PackageState -match "Staged|InstallPending"} | Where {$_.InstallTime.ToString("yyyy-MM-dd") -eq "2021-01-16"}

The added criterion will return only the packages installed on a date whose yyyy-MM-dd expression equals to the given date string. The example I had given is the date of today (the current present day), change the date to the date when your computer tried to install the update and failed.

You can get rid of it by:

$packagename=(Get-WindowsPackage -Online | Where {$_.PackageState -match "Staged|InstallPending"} | Where {$_.InstallTime.ToString("yyyy-MM-dd") -eq "2021-01-16"}).packagename
dism /Online /Remove-Package /PackageName:$packagename /norestart

You then need to run the following commands to prevent Windows from trying to install this update again:

net stop wuauserv
remove-item "$env:windir\SoftwareDistribution\Download" -force -recurse
net start wuauserv
dism /online /cleanup-image /revertpendingactions
dism /online /cleanup-image /startcomponentcleanup

I hope you find the answer useful; Best regards.

Get-WindowsPackage is a cmdlet provided by dism, basically Get-WindowsPackage -Online does the same thing as dism /online /get-packages, the difference being Get-WindowsPackage is a cmdlet, it returns structured result which can be used for other cmdlets.

If Get-WindowsPackage -Online doesn't list all your installed updates, then I think no third-party software can list all your installed updates, as they are all based on dism.

And if you aren't seeing any pending updates, then there must be something wrong, your update failed to install, so it should be pending install.

If all suggestions failed to solve this particular problem for you, then I can give you one more advice: as a last resort, you have to reinstall Windows. Windows 10 .iso files are free to download now, you can download it and perform a repair install, you can keep all your files and your system will be fixed in this way; Beware it can't fix corrupt user profiles though, you have to perform a clean install and create a new profile if user profile is corrupted.

  • Get-WindowsPackage -Online does not show all the windows updates installed on my computer. – desbest Jan 16 at 11:15
  • I tried your suggestion and it doesn't work. Also I have no pending windows update packages. – desbest Jan 16 at 11:17
  • If you ran the commands in this answer then you deleted the information necessary to answer your question. remove-item "$env:windir\SoftwareDistribution\Download" -force -recurse this folder contained that information. Be sure you reboot after you did that – Ramhound Jan 16 at 11:59
  • I did not run the /Remove-Package command as deleting windows updates that were already installed would have been counterproductive. I missed out that step. – desbest Jan 16 at 12:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.