PSWindowsUpdate
PSWindowsUpdate copied to clipboard
Powershell 7 Doesn't Recognize Install-WindowsUpdate
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.
What version is your PowerShell 7? I'm on 7.5.3 and my commands work as intended.
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.