Install-module error in PowerShell
ISSUE -“install-module : 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.”
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.
RESOLUTION: GUI fix for this error is to download and install PowerShell version 5.1 or greater from Microsoft.
Latest PowerShell version as of Mar’2019 is Powershell 6.1.3. Click to Download PowerShell 6.1.3 for windows X64 or windows X86 here.
- ‘Install-module’ command is available only from PowerShell version 5.0 or higher
- We can check our current PowerShell version using $PSVersiontable command.
- Launch Management framework 5.1 download page
CLICK HERE TO DOWNLOAD POWERSHELL 5.1 INSTALLER
- Select ‘Download’ . Choose your OS and type to proceed.
- Once the setup is downloaded, install the package and restart your machine.
5.Now verify Powershell version using $psversiontable command and you can now able to use install-module command.
Thank you. It worked..!!
Yeah it worked for me. Thanks