New-DscChecksum
Creates checksum files for DSC documents and DSC resources.
構文
Default (既定)
New-DscChecksum
[-Path] <String[]>
[[-OutPath] <String>]
[-Force]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
説明
The New-DscChecksum
cmdlet generates checksum files for 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.
例
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
PS 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.
パラメーター
-Confirm
Prompts you for confirmation before running the cmdlet.
パラメーターのプロパティ
型: | SwitchParameter |
規定値: | False |
ワイルドカードのサポート: | False |
DontShow: | False |
Aliases: | cf |
パラメーター セット
(All)
配置: | Named |
必須: | False |
パイプラインからの値: | False |
プロパティ名別のパイプラインからの値: | False |
残りの引数からの値: | False |
-Force
Indicates that the cmdlet overwrites the specified output file if it already exists.
パラメーターのプロパティ
型: | SwitchParameter |
規定値: | None |
ワイルドカードのサポート: | False |
DontShow: | False |
パラメーター セット
(All)
配置: | Named |
必須: | False |
パイプラインからの値: | False |
プロパティ名別のパイプラインからの値: | False |
残りの引数からの値: | False |
-OutPath
Specifies the path and file name of the output checksum file.
パラメーターのプロパティ
型: | String |
規定値: | None |
ワイルドカードのサポート: | False |
DontShow: | False |
パラメーター セット
(All)
配置: | 1 |
必須: | False |
パイプラインからの値: | False |
プロパティ名別のパイプラインからの値: | False |
残りの引数からの値: | False |
-Path
Specifies the path of the input file.
パラメーターのプロパティ
型: | String[] |
規定値: | None |
ワイルドカードのサポート: | False |
DontShow: | False |
Aliases: | ConfigurationPath |
パラメーター セット
(All)
配置: | 0 |
必須: | True |
パイプラインからの値: | False |
プロパティ名別のパイプラインからの値: | False |
残りの引数からの値: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
パラメーターのプロパティ
型: | SwitchParameter |
規定値: | False |
ワイルドカードのサポート: | False |
DontShow: | False |
Aliases: | wi |
パラメーター セット
(All)
配置: | Named |
必須: | False |
パイプラインからの値: | False |
プロパティ名別のパイプラインからの値: | False |
残りの引数からの値: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.