Created
December 17, 2020 09:10
-
-
Save Robert-LTH/b7d044d044e02b47c39f77177c97d267 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
# 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