Ask a questionAsk a question
 

AnswerClient Installation Question

  • Monday, November 02, 2009 1:21 PM.Tim Harrison Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    OK, I seriously doubt I can do anything about this, but I'd like to ask anyway.  When I'm imaging my field laptops set up for IBCM, I have decided I want to allow them to download policy one time while connected to the LAN before I send them out to the field.  We have some pretty high requirements as far as how many machines we can image in a day so total imaging time is critical.

    I found that for some reason, if I image, say 5 machines, one of them will connect and get policy immediately while the other 5 seem to take between 10 and 12 minutes to do so.  I started poking around the logs and found a line in the ClientIDManagerStartup.log file that says:

    "Already refreshed within the last 10 minutes, Sleeping for the next 9 minutes before reattempt."

    So basically, it tries to download policy when it first starts up and if it is unable to get it for whatever reason, it sleeps for 9 minutes.  Is there ANY (and I would do just about anything) way to change that sleep timer to say 3-5 minutes?  The remaining systems are ALWAYS successful the second time they try to download policy so I know there's nothing wrong with my system configuration.  I don't know why it fails the first time, but if I could just change that timer, I could cut 5-7 minutes from my imaging time.

    Thanks

Answers

  • Tuesday, November 03, 2009 11:38 AMJannes AlinkMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,

    Don't think you can change the sleep timers. You can script the policy retrieval request which initiates the same action when you select the 'Machine Policy retrieval' action from the Control Panel. I suggest to add this script to your task sequence as the final step.

    The script is below:

    on error resume next

    dim oCPAppletMgr ‘Control Applet manager object.
    dim oClientAction ‘Individual client action.
    dim oClientActions ‘A collection of client actions.

    ‘Get the Control Panel manager object.
    set  oCPAppletMgr=CreateObject("CPApplet.CPAppletMgr")
    if err.number <> 0 then
        Wscript.echo "Couldn’t create control panel application manager"
        WScript.Quit
    end if

    ‘Get a collection of actions.
    set oClientActions=oCPAppletMgr.GetClientActions
    if err.number<>0 then
        wscript.echo "Couldn’t get the client actions"
        set oCPAppletMgr=nothing
        WScript.Quit
    end if

    ‘Display each client action name and perform it.
    For Each oClientAction In oClientActions

        if oClientAction.Name = "Request & Evaluate Machine Policy" then
            wscript.echo "Performing action " + oClientAction.Name
            oClientAction.PerformAction
        end if
    next

    set oClientActions=nothing
    set oCPAppletMgr=nothing


    Follow me through my blog!

    • Marked As Answer by.Tim Harrison Thursday, November 05, 2009 1:29 PM
    •  

All Replies

  • Tuesday, November 03, 2009 11:38 AMJannes AlinkMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,

    Don't think you can change the sleep timers. You can script the policy retrieval request which initiates the same action when you select the 'Machine Policy retrieval' action from the Control Panel. I suggest to add this script to your task sequence as the final step.

    The script is below:

    on error resume next

    dim oCPAppletMgr ‘Control Applet manager object.
    dim oClientAction ‘Individual client action.
    dim oClientActions ‘A collection of client actions.

    ‘Get the Control Panel manager object.
    set  oCPAppletMgr=CreateObject("CPApplet.CPAppletMgr")
    if err.number <> 0 then
        Wscript.echo "Couldn’t create control panel application manager"
        WScript.Quit
    end if

    ‘Get a collection of actions.
    set oClientActions=oCPAppletMgr.GetClientActions
    if err.number<>0 then
        wscript.echo "Couldn’t get the client actions"
        set oCPAppletMgr=nothing
        WScript.Quit
    end if

    ‘Display each client action name and perform it.
    For Each oClientAction In oClientActions

        if oClientAction.Name = "Request & Evaluate Machine Policy" then
            wscript.echo "Performing action " + oClientAction.Name
            oClientAction.PerformAction
        end if
    next

    set oClientActions=nothing
    set oCPAppletMgr=nothing


    Follow me through my blog!

    • Marked As Answer by.Tim Harrison Thursday, November 05, 2009 1:29 PM
    •