Created
October 2, 2013 00:20
-
-
Save JamesDawson/6787269 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param | |
( | |
[Parameter(Mandatory) ] | |
[String[]] $ComputerName, | |
[ValidateRange( 1,3 )] | |
[uint32] $flag = 3 | |
) | |
Invoke-CimMethod -ComputerName $ComputerName -Namespace root/microsoft/windows/desiredstateconfiguration ` | |
-Class MSFT_DscLocalConfigurationManager -MethodName ConsistencyCheck ` | |
-Arguments @{Flags=[ uint32]$flag } -Verbose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment