New-DSCCheckSum

Create checksum files for DSC documents and resources.

Syntax
      New-DSCCheckSum [-ConfigurationPath] String[] [[-OutPath] String] [-Force] [CommonParameters]

Key
   -ConfigurationPath String[]
       An array of paths to the Desired State Configuration documents or resource archives.

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

   -OutPath String
       The path and file name of the output checksum file.

New-DSCCheckSum 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 DSC service uses the checksums to ensure that the correct configuration and resources exist on the target node. Place the checksums along with the associated DSC documents and compressed DSC resources in the Desired State Configuration service store.

Examples

Create checksum files for all configurations in a specific path, skipping any that already exist in the destination:

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

Create checksum files for all configurations in a specific path and overwrite any that already exist in the destination:

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

“ I wanted to be a pharmacist. I liked the way our local pharmacist was always dressed in a nice white coat; he looked very calm, you'd give him money, and he'd give you something that you wanted to buy” ~ Walter Matthau

Related PowerShell Cmdlets

Get-DscConfiguration - Get the current config. of a node.
Get-DscResource - Get Desired State Config. resources from a computer.
Start-DscConfiguration - Apply Desired State config to nodes.
Get-DscLocalConfigurationManager - Get Local Config Manager settings.
TechNet - Desired State Configuration Overview.


 
Copyright © 1999-2024 SS64.com
Some rights reserved