Runbook Tester vs Run in Runbook Designer vs Run in Orchestrator Console

Ronald Seow 206 Reputation points
2020-08-25T03:49:57.04+00:00

Hi! Everyone,

I have hit another brick wall, but as usually, I'm clueless and hope I can get some knowledge here.

I have completed the creation of a Runbook to unlock AD User accounts following the workflow attached. The steps includes;

  1. Initialize Data - Get user input for AD User login ID
  2. Run .Net Script (Powershell) - Check Input for null value in entry
  3. Run .Net Script (Powershell) - Check whether Inputted user login ID user object exist in AD
  4. Run .Net Script (Powershell) - Check whether Inputted user login ID user object is enabled and lockout status is true
  5. Run .Net Script (Powershell) - Check whether Inputted user login ID user object is in the same AD Group as the Runbook user
  6. Run .Net Script (Powershell) - Unlock Inputted user login ID

I test run this Runbook in 3 ways;

  1. Runbook Tester - Completed successfully
  2. Using Run in Runbook Designer - Failed, no pop-up screen to request for input
  3. Using Run in Orchestrator Console - Failed, while executing the below script less the quotes

"$CurrentUserGroupObj = Get-ADUser -Identity $CurrentUser -Properties MemberOf"

19959-sco-runbook-full-flow-for-unlock-ad-user.jpgCan someone shed some light what is going on?

Thank you and best regards.
Ronald

System Center Orchestrator
System Center Orchestrator
A family of System Center products that provide an automation platform for orchestrating and integrating both Microsoft and non-Microsoft IT tools.
229 questions
{count} votes

Accepted answer
  1. Andreas Baumgarten 108.8K Reputation points MVP
    2020-08-27T09:47:43.543+00:00

    The options are:

    • SCSM -> "shoot sparrows with cannons"
    • 3rd party solution -> not allowed
    • Enter the user in the Initialize Data as a second input parameter
    0 comments No comments

17 additional answers

Sort by: Most helpful
  1. Andreas Baumgarten 108.8K Reputation points MVP
    2020-08-27T07:24:14.387+00:00

    There is a 3rd party tool available here: https://au2mator.com/

    Maybe this will help to get your requirement done.

    Regards

    Andreas Baumgarten

    (Please don't forget to Accept as answer if the reply is helpful)

    0 comments No comments

  2. Ronald Seow 206 Reputation points
    2020-08-27T07:31:39.9+00:00

    Hi!

    Thanks Andreas but I regret to say that we are not allowed to use other 3rd party software. Will have to make do with existing. Have highlighted that the use of SCSM can do the trick and waiting for reply.

    Sorry for all the restrictions on my end.

    Best regards.
    Ronald

    0 comments No comments

  3. Andreas Baumgarten 108.8K Reputation points MVP
    2020-08-27T08:11:30.627+00:00

    Using SCSM only to get this one requirement done is a little bit like "shoot sparrows with cannons" ;-)

    But it will work.

    Kind regards
    Andreas Baumgarten

    0 comments No comments

  4. Ronald Seow 206 Reputation points
    2020-08-27T08:14:56.657+00:00

    Hi! Andreas,

    Yup it is if there are no other way around this.

    Thank you for all your kind advise.

    Best regards.
    Ronald

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.