Skip to content

Instantly share code, notes, and snippets.

@Robert-LTH
Last active July 5, 2024 17:25
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

Thank you

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