Skip to content

Instantly share code, notes, and snippets.

@Robert-LTH
Created December 17, 2020 09:10
Show Gist options
  • Save Robert-LTH/b7d044d044e02b47c39f77177c97d267 to your computer and use it in GitHub Desktop.
Save Robert-LTH/b7d044d044e02b47c39f77177c97d267 to your computer and use it in GitHub Desktop.
# Downloads all policies
Invoke-CimMethod -ClassName SMS_Client -Namespace root/ccm -MethodName 'ResetPolicy' -Arguments @{ uFlags = [uint32]0 }
# Clears local policies and downloads all policies again
Invoke-CimMethod -ClassName SMS_Client -Namespace root/ccm -MethodName 'ResetPolicy' -Arguments @{ uFlags = [uint32]1 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment