Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

New-DSCCheckSum

New-DSCCheckSum

psdesiredstateconfiguration

Synopsis

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

Syntax

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

Detailed 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.

Parameters

-ConfigurationPath <String[]>

Specifies an array of paths to the Desired State Configuration documents or resource archives.

Aliases

Path

Required?

true

Position

1

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-Force <SwitchParameter>

Indicates that the cmdlet overwrites the specified output file if it already exists.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-OutPath <String>

Specifies the path and file name of the output checksum file.

Aliases

None

Required?

false

Position

2

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

None

Examples

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

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

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

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

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.

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

Online Version
Windows PowerShell Desired State Configuration Overview