Updated: April 17, 2012
Applies To: Windows Server 2008 R2, Windows Server 2012, Windows 8
Creates or deletes BranchCache content information, also called hashes, for the content in the specified directory on a BranchCache-capable file server.
This command is available only on computers running Windows Server® 2008 R2 that have the File Services server role and the BranchCache for network files role service installed.
Required. Specifies the folder location that contains the content for which you want to generate content information. The command processes all content stored in directory and its subfolders.
Optional. Specifies that the command is run in quiet mode. In quiet mode, the command does not display status information at the command prompt while the command is running. If –q is not specified, the command displays the folder location and file name for every file for which content information is generated.
Optional. Specifies the maximum amount of time that content information can be generated before hashgen stops processing content, where HH means hours and MM means minutes. If –t is not specified, hashgen runs until it has produced content information for all content in the specified directory.
Optional. Specifies the content information that you want to delete. All content information in the folder that you specify with the directory parameter is deleted when you use the –d parameter.
Optional. Specifies that hashgen force the generation of content information for the specified directory, its subfolders and contents, even if current content information already exists.
If hashgen is run without the –f parameter, the command skips the processing of content for which there is already valid content information.
The Windows Server® 2008 R2 family of operating systems can be used as BranchCache content servers, and include the hashgen command, with the following exceptions:
BranchCache is not supported in Server Core installations of Windows Server® 2008 R2 Enterprise with Hyper-V.
BranchCache is not supported in Server Core installations of Windows Server® 2008 R2 Datacenter with Hyper-V.