6

First, I would like to say that I'm a total beginner, so please try not to use to complexe words. I use Powershell V5 and I need to run the following line :

Install-Module ImportExcel -scope CurrentUser

But an error message appears

Install-Module : Le terme «Install-Module» n'est pas reconnu comme nom d'applet de commande, fonction, fichier de script ou programme exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, vérifiez que le chemin d'accès est correct et réessayez.

en:

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.

I have the Powershell version 5.0 :

PSVersion 5.0.10586.117
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.10586.117
CLRVersion 4.0.30319.36366
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

6
  • whats your powershell version? Commented Dec 16, 2016 at 21:17
  • 2
    Install-Module is part of the PowerShellGet Module The PowerShellGet module is installed with Windows PowerShell 5.0 and later releases of Windows PowerShell. Commented Dec 16, 2016 at 21:34
  • 1
    At minimum PS3.0 is required to install from here Commented Dec 16, 2016 at 21:40
  • See your PowerShell version using $PSVersionTable. Commented Dec 17, 2016 at 1:47
  • Now, I have the Powershell version 5.0, but the problem still remains the same. Commented Dec 20, 2016 at 10:27

3 Answers 3

7

Very importantly run PowerShell elevated as administrator on your Windows machine and then run

Find-Module -Name PowerShellGet | Install-Module
Find-Module -Name ImportExcel | Install-Module

If you are prompted, just select "Yes to all" for each of those commands, and let both complete and once that's finished, try again.

ImportExcel 6.0.0

PowerShell module to import/export Excel spreadsheets, without Excel.

source

Sign up to request clarification or add additional context in comments.

1 Comment

This worked for me with Windows 10 and PowerShell 5.1 so I wanted to post as a more clear answer in case it helps others that stumble upon this post.
1

I had to specify -RequiredVersion 6.0.0 to get Install-Module -Name Import-Excel to not give me the "No match was found" error, on my Windows 11 Pro system, using Windows Powershell 5.1.22621.1778

Install-Module -Name ImportExcel -RequiredVersion 6.0.0

Comments

0

I would add the -force parameter as well to make sure it installs

Find-Module -Name ImportExcel | Install-Module -Force

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.