How to refresh Machine policy retrieval and evaluation cycle remotelyHi All,<br/><br/>I want to do automation using batch scripting.<br/>The process  - Click on &quot;Machine policy retrieval and evaluation cycle&quot; and 'Initiate Action' on client computer. I want to do it automatically using batch scripting. <br/>I want to know the exe file which is running on client that I can use for refreshing the cycle Or any other client agent.<br/>Or is there other way to do this? (not manually)<br/><br/>Thanks,<br/>Kedar S Tamboli<br/>© 2009 Microsoft Corporation. All rights reserved.Mon, 06 Jul 2009 20:58:17 Z4d4cee11-c7de-4b91-98cf-fa7e8c9a2db7http://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/4d4cee11-c7de-4b91-98cf-fa7e8c9a2db7#4d4cee11-c7de-4b91-98cf-fa7e8c9a2db7http://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/4d4cee11-c7de-4b91-98cf-fa7e8c9a2db7#4d4cee11-c7de-4b91-98cf-fa7e8c9a2db7Kedar S Tambolihttp://social.technet.microsoft.com/Profile/en-US/?user=Kedar%20S%20TamboliHow to refresh Machine policy retrieval and evaluation cycle remotelyHi All,<br/><br/>I want to do automation using batch scripting.<br/>The process  - Click on &quot;Machine policy retrieval and evaluation cycle&quot; and 'Initiate Action' on client computer. I want to do it automatically using batch scripting. <br/>I want to know the exe file which is running on client that I can use for refreshing the cycle Or any other client agent.<br/>Or is there other way to do this? (not manually)<br/><br/>Thanks,<br/>Kedar S Tamboli<br/>Fri, 03 Jul 2009 04:03:22 Z2009-07-03T04:03:22Zhttp://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/4d4cee11-c7de-4b91-98cf-fa7e8c9a2db7#0b6c3bb9-f349-4bb7-8438-d69973f661a3http://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/4d4cee11-c7de-4b91-98cf-fa7e8c9a2db7#0b6c3bb9-f349-4bb7-8438-d69973f661a3Kent Agerlundhttp://social.technet.microsoft.com/Profile/en-US/?user=Kent%20AgerlundHow to refresh Machine policy retrieval and evaluation cycle remotelyHi Kedar,<br/><br/>If you install the right click tools you will get a VB script whit the code. The Right tools can be downloaded from - <a title="http://www.myitforum.com/myITWiki/SCCMTools.ashx" href="http://www.myitforum.com/myITWiki/SCCMTools.ashx"><span style="color:#225588">http://www.myitforum.com/myITWiki/SCCMTools.ashx</span></a> <br/><br/><br/><hr class="sig">Kent Agerlund | http://agerlund.spaces.live.com/blog/Fri, 03 Jul 2009 04:40:16 Z2009-07-03T04:40:16Zhttp://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/4d4cee11-c7de-4b91-98cf-fa7e8c9a2db7#933d579c-320e-4d1c-b158-4ce63fed2a8bhttp://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/4d4cee11-c7de-4b91-98cf-fa7e8c9a2db7#933d579c-320e-4d1c-b158-4ce63fed2a8bSherry Kissingerhttp://social.technet.microsoft.com/Profile/en-US/?user=Sherry%20KissingerHow to refresh Machine policy retrieval and evaluation cycle remotely<p>If you're looking to get into scripting Configuration Manager, grab the SDK: <a href="http://www.microsoft.com/downloads/details.aspx?familyid=064a995f-ef13-4200-81ad-e3af6218edcc&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?familyid=064a995f-ef13-4200-81ad-e3af6218edcc&amp;displaylang=en</a><br/><br/>The book &quot;SMS 2003 Recipes&quot; by Warren Byle and Greg Ramsey is for SMS2003, but all of the scripts inside still work on ConfigMgr07; so you might want to consider picking that up.<br/><br/>There are a couple of different ways to invoke HW inv; trigger the scheduleid is the best way remotely.  But I've used this when the computer itself runs the vbscript (not a remotely invoked action).  You could use it for any action in the Control Panel applet; but be wary of the user policy refresh--that's specific the the user running the action.  So if you were to run it as you, it's user policy refresh for you, not the interactively logged in user.  If you need that action, there's a workaround (not easy, but it usually works).<br/><br/><span style="font-family:Arial">'Run a SMS Hardware Inventory<br/>Set cpApplet = CreateObject(&quot;CPAPPLET.CPAppletMgr&quot;)<br/>Set actions = cpApplet.GetClientActions<br/>For Each action In actions<br/>    If Instr(action.Name,&quot;Hardware Inventory&quot;) &gt; 0 Then<br/>        action.PerformAction    <br/>End if<br/>Next</span></p><hr class="sig">Standardize. Simplify. Automate.Fri, 03 Jul 2009 11:51:02 Z2009-07-03T11:51:02Z