Last active
January 13, 2023 16:36
-
-
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 |
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
Thank you
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HI. Will this reset local ccm policy stored on the client and then allow the client to contact an MP and get new policy for example if the client is on a metered connection and has custom client policy deployed to it to enable metered comms that is can’t pick up?