Export (0) Print
Expand All

New-DSCCheckSum

Windows PowerShell 4.0

Updated: October 17, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

New-DSCCheckSum

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

Syntax

Parameter Set: Default
New-DSCCheckSum [-ConfigurationPath] <String[]> [[-OutPath] <String> ] [-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

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Force

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


Aliases

none

Required?

false

Position?

named

Default Value

none

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

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

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

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft