The term 'Get-FileHash' is not recognized

See original GitHub issue

Version Used: master branch Steps to Reproduce:

  1. download latest source, on Windows 7 64bits (with latest powershell for windows 7),
  2. open VS 2017 command prompt
  3. run restore.cmd

Expected Behavior: Everything should download fine and Build.cmd should be ready to run Actual Behavior: it throws an exception: System.Management.Automation.CommandNotFoundException: The term ‘Get-FileHash’ 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 include d, verify that the path is correct and try again. at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exce ption exception) at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

Error executing command: & (Join-Path $PSScriptRoot “download-nuget.ps1”)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
hexbinoctcommented, May 11, 2017

@hickford did you install Windows Management Framework 4.0, google for it, install and restart machine and try again, this should work.

0reactions
hickfordcommented, May 11, 2017

Same problem with restore.cmd

System.Management.Automation.CommandNotFoundException: The term ‘Get-FileHash’ 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’m using Windows 7.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running powershell -command 'Get-FileHash' fails #8635
get-filehash : The term 'get-filehash' is not recognized as the name of a cmdlet, function, script file, or operable program.
Read more >
powershell - Unable to get output from get-filehash
I'm using PowerShell 4.0 and I just encountered the same problem of null output from Get-FileHash. The cause of my problem is different...
Read more >
Get-Filehash Not Recognised (Powershell) – Questions
Get-FileHash is not recognised when used in a Powershell script. ... Get-FileHash : The term 'Get-FileHash' is not recognized as the name of ......
Read more >
Get-FileHash (Microsoft.PowerShell.Utility)
The Get-FileHash cmdlet computes the hash value for a file by using a specified hash ... way to verify that the contents of...
Read more >
Error Message Help : r/PowerShell
Get-FileHa3p4sh : The term 'Get-FileHa3p4sh' is not recognized as the name of a. cmdlet, function, script file, or operable program.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found