Get-FileHash — Basic UsageIT technician command center
PowerShell · Windows Administration

Get-FileHash — Basic Usage

Use Get-FileHash for a standard administrative task.

Copy-ready commandGet-FileHash — Basic Usage
Get-FileHash .\installer.exe -Algorithm SHA256

Requirements and permissions

Requirements
Windows PowerShell 5.1 or PowerShell 7
Permissions
Varies by command
Last reviewed
2026-07-31

Examples

Basic Usage

Use Get-FileHash for a standard administrative task.

Get-FileHash .\installer.exe -Algorithm SHA256

Original command

Calculate a file hash.

Get-FileHash .\installer.exe -Algorithm SHA256

Common errors

Command not found

Confirm Windows PowerShell 5.1 or PowerShell 7 is installed and available in your current shell.