Hello Everybody

Here is a little xmas present from Team CTGlobal

This script is an improved version of the script used by MDT to for the “Execute Runbook” Step

I has the following improvements:

  • Success/Failed check
  • Retry if the webservice call fails
  • Retrieval of the correct result, when a runbook has failed over to one or more servers.
    • The currently included script in MDt, will accidently get the first result, which is the failed result, while the newst result is the succeded one.

This improves stability of the step by far.

This has been tested in a scenario that contains around 800 servers in each patch windows.

Each server executes around 20 runbooks in the TS.

Including retry/check status, this is about 20 calls per step.

So a total executions of 800*20*20 = 320,000 calls in a single Patch window!

It has been running for around 8 months, without any issues!

So we can  call this Tested!

Hopefully this script can be included in a future version of MDT.

I will make sure that the correct people get the message, but for now you can get it here and replace the file in your MDT package.


Download “ZTIExecuteRunbook.zip” ZTIExecuteRunbook.zip – Downloaded 2 times – 4 KB

ZTIExecuteRunbook.wsf:

 

 


   




Previous article100 gånger snabbare databas!
Next article#PS5.1–Import-PSSession again JEA endpoint Error
Jakob is a Microsoft System Center Cloud and Data center Management MVP. Working as Senior Consultant, trainer and Chief Developer at Coretech A/S, where he is one of the driving forces in keeping Coretech a System Center Gold Partner and member of the System Center Alliance. Since he started at Coretech in 2007, he has focused on Scripting and Development, primarily developing tools, extensions and scripts for the System Center Suite. His main product focus is System Center Orchestrator, the former Opalis, a product he has been invited to speak about at different summits and user group meetings, becoming a renowned voice in his field. He is passionately devoted to the community, for which he contributes to, by being a moderator at TechNet, member of the TechNet Influencers team and sharing his knowledge through hid blog.