Skip to content

Instantly share code, notes, and snippets.

@torgro
Created January 10, 2016 22:40
Show Gist options
  • Select an option

  • Save torgro/06a2ba3dc886fcbbe804 to your computer and use it in GitHub Desktop.

Select an option

Save torgro/06a2ba3dc886fcbbe804 to your computer and use it in GitHub Desktop.
$invokeCim = @{
Namespace = "root/Microsoft/Windows/DesiredStateConfiguration"
Class = "MSFT_DSCLocalConfigurationManager"
Method = "PerformRequiredConfigurationChecks"
Arguments = @{Flags = [System.UInt32]1}
}
Invoke-CimMethod @invokeCim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment