Skip navigation
Q: My Configuration Manager 2012 client isn't correctly receiving policies--how do I force the client to delete all its policy and download again?

Q: My Configuration Manager 2012 client isn't correctly receiving policies--how do I force the client to delete all its policy and download again?

A: The script below can be executed to flush out all policy and force the policy to be downloaded again for a System Center 2012 Configuration Manager client. After it's executed, check the PolicyAgent.log file on the client for the policy download status.

Set oWMI = GetObject("winmgmts://./root/ccm")
set oClient = oWMI.Get("SMS_Client")
oClient.ResetPolicy(0)
Set cpApplet = CreateObject("CPAPPLET.CPAppletMgr")
Set oCommands = cpApplet.GetClientActions
For Each oAction In oCommands
    If UCase(oAction.name) = UCase("Request & Evaluate Machine Policy") then
        oAction.PerformAction
    End If
Next

The script needs to be ran from an elevated command prompt.

cscript sccmclientpolreset.vbs

Looking at the PolicyAgent.log file (in the C:\Windows\CCM\Logs folder) using notepad or cmtrace (which is part of the Configuration Manager server), you should be able to see the new download of policy. To learn more about System Center Configuration Manager 2012, check out more of John's FAQs such as this one: "Q: How do I automatically approve and deploy updates with System Center Configuration Manager 2012?"

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish