Last active
July 5, 2024 17:25
-
-
Save Robert-LTH/2c92f7ac8fb12c73a443b37019227a25 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
# (Get-CimClass -Namespace root\ccm -ClassName sms_client).CimClassMethods['ResetPolicy'].Parameters | |
Invoke-CimMethod -Namespace root\ccm -ClassName sms_client -Name ResetPolicy -Arguments @{ uFlags = ([UInt32]1) } | |
Restart-Service CcmExec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The flag tells the client to clear the local policy next time it does a policy request.
The documentation is available here:
https://docs.microsoft.com/sv-se/mem/configmgr/develop/reference/core/clients/client-classes/resetpolicy-method-in-class-sms_client