Skip to content
\n

Scoop update didn't help.
\nGet-FileHash is not found by PowerShell.
\nIt is not exported by Microsoft.PowerShell.Utility

\n
$PSVersionTable\n\nName                           Value\n----                           -----\nPSVersion                      5.1.26100.2161\nPSEdition                      Desktop\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\nBuildVersion                   10.0.26100.2161\nCLRVersion                     4.0.30319.42000\nWSManStackVersion              3.0\nPSRemotingProtocolVersion      2.3\nSerializationVersion           1.1.0.1\n\n\nPS> Get-Module Microsoft.PowerShell.Utility\n\nModuleType Version    Name                                ExportedCommands\n---------- -------    ----                                ----------------\nManifest   7.0.0.0    Microsoft.PowerShell.Utility        {Add-Member, Add-Type, Clear-Variable, Compare-Object...}\n\n\nPS C:\\Users\\MattiassichÁkos> (Get-Module Microsoft.PowerShell.Utility).ExportedCommands\n\nKey                    Value\n---                    -----\nAdd-Member             Add-Member\nAdd-Type               Add-Type\nClear-Variable         Clear-Variable\nCompare-Object         Compare-Object\nConvertFrom-Csv        ConvertFrom-Csv\nConvertFrom-Json       ConvertFrom-Json\nConvertFrom-StringData ConvertFrom-StringData\nConvertTo-Csv          ConvertTo-Csv\nConvertTo-Html         ConvertTo-Html\nConvertTo-Json         ConvertTo-Json\nConvertTo-Xml          ConvertTo-Xml\nDebug-Runspace         Debug-Runspace\nDisable-PSBreakpoint   Disable-PSBreakpoint\nDisable-RunspaceDebug  Disable-RunspaceDebug\nEnable-PSBreakpoint    Enable-PSBreakpoint\nEnable-RunspaceDebug   Enable-RunspaceDebug\nExport-Alias           Export-Alias\nExport-Clixml          Export-Clixml\nExport-Csv             Export-Csv\nExport-FormatData      Export-FormatData\nExport-PSSession       Export-PSSession\nFormat-Custom          Format-Custom\nFormat-List            Format-List\nFormat-Table           Format-Table\nFormat-Wide            Format-Wide\nGet-Alias              Get-Alias\nGet-Culture            Get-Culture\nGet-Date               Get-Date\nGet-Event              Get-Event\nGet-EventSubscriber    Get-EventSubscriber\nGet-FormatData         Get-FormatData\nGet-Host               Get-Host\nGet-Member             Get-Member\nGet-PSBreakpoint       Get-PSBreakpoint\nGet-PSCallStack        Get-PSCallStack\nGet-Random             Get-Random\nGet-Runspace           Get-Runspace\nGet-RunspaceDebug      Get-RunspaceDebug\nGet-TraceSource        Get-TraceSource\nGet-TypeData           Get-TypeData\nGet-UICulture          Get-UICulture\nGet-Unique             Get-Unique\nGet-Variable           Get-Variable\nGroup-Object           Group-Object\nImport-Alias           Import-Alias\nImport-Clixml          Import-Clixml\nImport-Csv             Import-Csv\nImport-LocalizedData   Import-LocalizedData\nImport-PSSession       Import-PSSession\nInvoke-Expression      Invoke-Expression\nInvoke-RestMethod      Invoke-RestMethod\nInvoke-WebRequest      Invoke-WebRequest\nMeasure-Command        Measure-Command\nMeasure-Object         Measure-Object\nNew-Alias              New-Alias\nNew-Event              New-Event\nNew-Object             New-Object\nNew-TimeSpan           New-TimeSpan\nNew-Variable           New-Variable\nOut-File               Out-File\nOut-GridView           Out-GridView\nOut-Printer            Out-Printer\nOut-String             Out-String\nRead-Host              Read-Host\nRegister-EngineEvent   Register-EngineEvent\nRegister-ObjectEvent   Register-ObjectEvent\nRemove-Event           Remove-Event\nRemove-PSBreakpoint    Remove-PSBreakpoint\nRemove-TypeData        Remove-TypeData\nRemove-Variable        Remove-Variable\nSelect-Object          Select-Object\nSelect-String          Select-String\nSelect-Xml             Select-Xml\nSend-MailMessage       Send-MailMessage\nSet-Alias              Set-Alias\nSet-Date               Set-Date\nSet-PSBreakpoint       Set-PSBreakpoint\nSet-TraceSource        Set-TraceSource\nSet-Variable           Set-Variable\nShow-Command           Show-Command\nSort-Object            Sort-Object\nStart-Sleep            Start-Sleep\nTee-Object             Tee-Object\nTrace-Command          Trace-Command\nUnblock-File           Unblock-File\nUnregister-Event       Unregister-Event\nUpdate-FormatData      Update-FormatData\nUpdate-List            Update-List\nUpdate-TypeData        Update-TypeData\nWait-Debugger          Wait-Debugger\nWait-Event             Wait-Event\nWrite-Debug            Write-Debug\nWrite-Error            Write-Error\nWrite-Host             Write-Host\nWrite-Information      Write-Information\nWrite-Output           Write-Output\nWrite-Progress         Write-Progress\nWrite-Verbose          Write-Verbose\nWrite-Warning          Write-Warning\n
\n

How I ensure that 'Get-Hash' is recognized?

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

I found it:
\n$env:PSModulePath is not set properly.

\n

It is discussed here:
\nPowerShell/PowerShell#8635

","upvoteCount":0,"url":"https://github.com/ScoopInstaller/Scoop/discussions/6281#discussioncomment-12077889"}}}

pwsh update 'Get-FileHash' is not recognized as the name of a cmdlet #6281

Discussion options

You must be logged in to vote

I found it:
$env:PSModulePath is not set properly.

It is discussed here:
PowerShell/PowerShell#8635

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mattia72
Comment options

@Hrxn
Comment options

@mattia72
Comment options

Answer selected by mattia72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants