Lewan Technology Blog

Microsoft Windows Server Fix for Get-DfsrFileHash Error 0x00000005

Written by John Certeza | May 19, 2016

Microsoft Windows Server recommends that you Validate Preseeded Files for DFS Replication during setup of Distributed File System (DFS) Replication. But when you validate file hashes on either your source or destination server you may get the following error:

Get-DfsrFileHash : Could not calculate the file hash. Error code 0x00000005

There isn't much information on error 0x00000005, however there is a simple fix I've found.

To resolve the error, you'll need to use the Get-DfsrFileHash cmdlet with the UNC or Shared path.

Example:

Problem solved!

Lewan is a Microsoft Silver Partner, and a Microsoft Certified Solutions Expert (MCSE) and Microsoft Certified Professional (MCP).