IT プロフェッショナルのための技術情報サイト > フォーラム ホーム > Configuration Manager General > How to refresh Machine policy retrieval and evaluation cycle remotely
質問する質問する
 

回答済みHow to refresh Machine policy retrieval and evaluation cycle remotely

  • 2009年7月3日 4:03Kedar S Tamboli ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     
    Hi All,

    I want to do automation using batch scripting.
    The process  - Click on "Machine policy retrieval and evaluation cycle" and 'Initiate Action' on client computer. I want to do it automatically using batch scripting.
    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.
    Or is there other way to do this? (not manually)

    Thanks,
    Kedar S Tamboli

回答

  • 2009年7月3日 4:40Kent Agerlund ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     回答済み
    Hi Kedar,

    If you install the right click tools you will get a VB script whit the code. The Right tools can be downloaded from - http://www.myitforum.com/myITWiki/SCCMTools.ashx



    Kent Agerlund | http://agerlund.spaces.live.com/blog/
  • 2009年7月3日 11:51Sherry KissingerMVPユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     回答済み

    If you're looking to get into scripting Configuration Manager, grab the SDK: http://www.microsoft.com/downloads/details.aspx?familyid=064a995f-ef13-4200-81ad-e3af6218edcc&displaylang=en

    The book "SMS 2003 Recipes" 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.

    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).

    'Run a SMS Hardware Inventory
    Set cpApplet = CreateObject("CPAPPLET.CPAppletMgr")
    Set actions = cpApplet.GetClientActions
    For Each action In actions
        If Instr(action.Name,"Hardware Inventory") > 0 Then
            action.PerformAction   
    End if
    Next


    Standardize. Simplify. Automate.

すべての返信

  • 2009年7月3日 4:40Kent Agerlund ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     回答済み
    Hi Kedar,

    If you install the right click tools you will get a VB script whit the code. The Right tools can be downloaded from - http://www.myitforum.com/myITWiki/SCCMTools.ashx



    Kent Agerlund | http://agerlund.spaces.live.com/blog/
  • 2009年7月3日 11:51Sherry KissingerMVPユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     回答済み

    If you're looking to get into scripting Configuration Manager, grab the SDK: http://www.microsoft.com/downloads/details.aspx?familyid=064a995f-ef13-4200-81ad-e3af6218edcc&displaylang=en

    The book "SMS 2003 Recipes" 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.

    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).

    'Run a SMS Hardware Inventory
    Set cpApplet = CreateObject("CPAPPLET.CPAppletMgr")
    Set actions = cpApplet.GetClientActions
    For Each action In actions
        If Instr(action.Name,"Hardware Inventory") > 0 Then
            action.PerformAction   
    End if
    Next


    Standardize. Simplify. Automate.