The term ‘Invoke-WebRequest’ is not recognized

Fixing “The term ‘Invoke-WebRequest’ is not recognized” error

I’ve decided to check out the code from Orchard2 to learn more about it and the new ASP.NET Core 1.0. Following the Getting Started points from their github’s page the third bullet point is to run the build.cmd. I did and the output was the following

The term ‘Invoke-WebRequest’ is not recognized

So, I did what every engineer does when he has a problem that doesn’t know how to solve… I googled it. It didn’t help much, so I went to the technet website to see that the cmdlet has been introduced in Windows PowerShell 3.0.

CmdLet other versions

Next, I wondered what powershell version I had on the computer.

Powershell version

Ops, problem found. Now, to solve it, I went to and installed the PowerShell 4.0.

Finally, it worked.

© 2022. All rights reserved.

Powered by Hydejack v6.3.0