Does anyone know if it is possible to calculate a SHA1 Hash in Powershell V2.0?
The only information I can find online is with Powershell V4.0.
Does anyone know if it is possible to calculate a SHA1 Hash in Powershell V2.0?
The only information I can find online is with Powershell V4.0.
I can't remember back in Powershell V2 days, .NET 3.5 was typically installed too. I think it's the case.
You can always try the following and see if it works:
Replace the value of
$file
with the name of a file you have.Yes, it is possible as it is part of NET 2.0. In fact, the PowerShell Community Extensions use the .NET hash support to implement the
Get-Hash
command. Version 2.1.1 installs and runs on PowerShell V2.