Skip to content

Instantly share code, notes, and snippets.

@itpropro
Created February 22, 2016 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itpropro/cf6c9ee588a08bdfce4e to your computer and use it in GitHub Desktop.
Save itpropro/cf6c9ee588a08bdfce4e to your computer and use it in GitHub Desktop.
#Applies the pending configuration
Invoke-CimMethod -Namespace root\Microsoft\Windows\DesiredStateConfiguration -ClassName MSFT_DSCLocalConfigurationManager -MethodName ApplyConfiguration
#Starts a consistency check for the last applied config
Invoke-CimMethod -Namespace root\Microsoft\Windows\DesiredStateConfiguration -ClassName MSFT_DSCLocalConfigurationManager -MethodName PerformRequiredConfigurationChecks -Arguments @{Flags = [uint32]1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment