PSWindowsUpdate icon indicating copy to clipboard operation
PSWindowsUpdate copied to clipboard

Powershell 7 Doesn't Recognize Install-WindowsUpdate

Open kcabrera99 opened this issue 4 months ago • 2 comments

When running Install-WindowsUpdate via Powershell 7, the following error is returned:

Install-WindowsUpdate: The term 'Install-WindowsUpdate' is not recognized as a name of a cmdlet, function, scriptfile, or executable program.

Get-WindowsUpdate command seems to work fine.

kcabrera99 avatar Sep 12 '25 15:09 kcabrera99

What version is your PowerShell 7? I'm on 7.5.3 and my commands work as intended.

TheBrokenG0d avatar Oct 06 '25 13:10 TheBrokenG0d

I'm using 7.5.3. For context, this is a brand new machine. I was able to get it to work if I run Get-WuHistory, then the Install-WindowsUpdate command works fine going forward. But it won't work the first time I install the module and run the Install-WindowsUpdate command.

kcabrera99 avatar Oct 06 '25 19:10 kcabrera99