Follow these steps to install the PowerHash Suite manually and register it as a global command in your terminal.
Move all the project files to a permanent location. Avoid using temporary folders like Downloads.
- Recommended Path:
C:\Resources\bin\PowerHash
Required Files:
PowerHash.ps1(Controller)PowerHash-Checksum.ps1(Worker)PowerHash-Verify.ps1(Worker)powerhash.cmd(CLI Shim)
Windows blocks scripts downloaded from the web by default. You must unblock them to allow execution.
- Open PowerShell as Administrator.
- Run the following command (update the path to match your folder):
Unblock-File -Path "C:\Resources\bin\PowerHash\PowerHash*.ps1"
To call PowerHash from any folder, Windows needs to know where the .bat shim is located.
-
Open Environment Variables:
- Press
Win + R, typesysdm.cpl, and hit Enter. - Navigate to the Advanced tab.
- Click the Environment Variables... button at the bottom.
- Press
-
Edit the System Path:
- In the System variables section (the bottom half), find the variable named Path.
- Select it and click Edit....
- Click New in the top right of the popup.
- Paste the full path to your folder (e.g.,
C:\Resources\bin\PowerHash).
-
Confirm and Refresh:
- Click OK on all three windows.
- Crucial: You must close and reopen any active Command Prompt or PowerShell windows for the change to take effect.