Skip to content

Instantly share code, notes, and snippets.

@JamesDawson
Created October 2, 2013 00:21
Show Gist options
  • Select an option

  • Save JamesDawson/6787277 to your computer and use it in GitHub Desktop.

Select an option

Save JamesDawson/6787277 to your computer and use it in GitHub Desktop.
param
(
[Parameter(Mandatory) ]
[String[]] $ComputerName,
[ValidateRange( 1,3 )]
[uint32] $flag = 1
)
Invoke-CimMethod -ComputerName $ComputerName -Namespace root/microsoft/windows/desiredstateconfiguration `
-Class MSFT_DscLocalConfigurationManager -MethodName PerformRequiredConfigurationChecks `
-Arguments @{Flags = $flag} -Verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment