NAME
New-DscChecksum
SYNOPSIS
Creates checksum files for DSC documents and DSC resources.SYNTAX
New-DscChecksum [-Path]
[[-OutPath] ] [-Confirm] [-Force] [-WhatIf] [ ] DESCRIPTION
The New-DSCCheckSum cmdlet generates checksum files for Windows PowerShell Desired State Configuration (DSC)
documents and compressed DSC resources. This cmdlet generates a checksum file for each configuration and resource to be used in pull mode. The DSC service uses the checksums to make sure that the correct configuration and resources exist on the target node. Place the checksums together with the associated DSC documents and compressed DSC resources in the DSC service store.PARAMETERS
-Confirm [
Prompts you for confirmation before running the cmdlet. Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false] -Force [
Indicates that the cmdlet overwrites the specified output file if it already exists. Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false] -OutPath
Specifies the path and file name of the output checksum file. Required? false Position? 1 Default value None Accept pipeline input? False Accept wildcard characters? false-Path
Specifies the path of the input file. Required? true Position? 0 Default value None Accept pipeline input? False Accept wildcard characters? false-WhatIf [
Shows what would happen if the cmdlet runs. The cmdlet is not run. Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false] This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216). INPUTS
OUTPUTS
NOTES
Example 1: Create checksum files for all configurations in a specific path
PS C:\> New-DscCheckSum -Path "C:\DSC\Configurations\"
This command creates checksum files for all configurations in the path C:\DSC\Configurations. Any checksum files that already exist are skipped.Example 2: Create checksum files for all configurations in a specific path and overwrite the existing checksum
filesPS C:\> New-DscCheckSum -Path "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.RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkId=821459Windows PowerShell Desired State Configuration Overview http://go.microsoft.com/fwlink/?LinkID=311940