Skip to content

Instantly share code, notes, and snippets.

@Robert-LTH
Last active January 13, 2023 16:36
Show Gist options
  • Save Robert-LTH/2c92f7ac8fb12c73a443b37019227a25 to your computer and use it in GitHub Desktop.
Save Robert-LTH/2c92f7ac8fb12c73a443b37019227a25 to your computer and use it in GitHub Desktop.
# (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
@conorken3
Copy link

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?

@Robert-LTH
Copy link
Author

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

@conorken3
Copy link

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment