Fix PowerShell: The term 'Install-Module' is not recognized as the name of a cmdlet, function, script file, or operable program

I tried to use PowerShell to Check and Update Windows Systems for the Meltdown and Spectre CPU Flaws but I was dead in the water because the first step, installing the software, didn't work. What follows is the steps that worked to get Windows 7 to install a version of PowerShell that supports "Install-Module".

Here's the error I got:
The term 'Install-Module' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:15
+ Install-Module <<<<
    + CategoryInfo          : ObjectNotFound: (Install-Module:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The supposed solution was to install the newest version of PowerShell but all the advice didn't work, because all the recommended downloads from microsoft's website refused to install.  The only one that did work was Windows Management Framework 4.0, for windows Vista (6.1). This provided an older version of PowerShell but still didn't support Install-Module. However, once WMF 4.0 was installed I could install PowerShell-6.0.1-win-x64.msi from github and that finally supported Install-Module!

What a involved process! I guess microsoft doesn't test Windows 7 compatibility much any more. Sadly, while the PowerShell script now installs via Install-module, it crashes mid-execution. Oh well. Instead I used a simple Win32 app to check the registry status.

Comments

Email me

Name

Email *

Message *

Popular posts from this blog

Panasonic TH-42PX75U Plasma TV review: input lag and upscaling tested using the piLagTesterPRO

piLagTester PRO order page

A $5 TV Input Lag tester using a Raspberry Pi Zero