Skip to content

Conversation

@m-hanisch
Copy link

The blogpost Set Intune Primary User with Azure Automation states that $ExecutionMode is set to "Test" or "Prod".

  1. Open your RunBook
  2. Click Edit
  3. Chage the setting $ExecutionMode = “Test” to run in Test mode and no real changes are made
  4. Now you can click Test Pane
  5. And run the script to see the results.
  6. If it works as expected, change back $ExecutionMode = “Prod”

I presumed that you replaced this string param $ExecutionMode with the bool param $Testmode. I updated the HelpMessage and added a hint to the old param name and escaped it. That parameter defaulted to $false. I updated the default value to $true as stated in the HelpMessage.

Please review. Thanks, Markus

The blogpost [Set Intune Primary User with Azure Automation](https://www.tbone.se/2025/03/31/set-intune-primary-user-with-azure-automation/) states that $ExecutionMode is set to "Test" or "Prod". 
I presumed that you replaced this string param $ExecutionMode with the bool param $Testmode. I updated the HelpMessage and added a hint to the old param name and escaped it.
That parameter defaulted to $false. I updated the default value to $true as stated in the HelpMessage.

Please review. Thanks, Markus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant