PowerShell Logo Small

New-DscChecksum



This is the built-in help made by Microsoft for the command 'New-DscChecksum', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Creates checksum files for Desired State Configuration documents and Desired State Configuration resources.

SYNTAX


New-DSCCheckSum [-ConfigurationPath] <String[]> [[-OutPath] <String>] [-Force] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The New-DSCCheckSum cmdlet generates checksum files for Desired State Configuration documents and compressed Desired State Configuration resources. The cmdlet generates a
checksum file for each configuration and resource to be used in pull mode. The Desired State Configuration service uses the checksums to ensure that the correct
configuration and resources exist on the target node. Place the checksums along with the associated Desired State Configuration documents and compressed Desired State
Configuration resources in the Desired State Configuration service store.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?linkid=327747
Windows PowerShell Desired State Configuration Overview



REMARKS

<

Examples


Example 1: Create checksum files for all configurations in a specific path

PS C:\> New-DscCheckSum -ConfigurationPath C:\DSC\Configurations\



This command creates checksum files for all configurations in the path C:\DSC\Configurations. Any checksum files that already exist will be skipped.




Example 2: Create checksum files for all configurations in a specific path and overwrite the existing checksum files

PS C:\> New-DscCheckSum -ConfigurationPath C:\DSC\Configurations\ -Force



This command creates new checksum files for all configurations in the path C:\DSC\Configurations. Specifying the Force parameter causes the command to overwrite any checksum
files that already exist.