I hope this can serve the Operations Manager community as a good source for finding working examples of the Command Shell.
I will continue to update this table periodically. If you subscribe to my blog, you will receive each new example as I post it.
Replace the text in red in each example with your specific parameters or criteria.
Set failover management server for Gateway role
Set management server list for agent
I do not moderate this blog anymore. If you have a question regarding this post, send me a message.
Thanks for the listed commands. A friendly feed back on the comment above the commands: "Replace the text in red in each example with your specific parameters or criteria." This sentenced should be removed or add some examples with red parameters.
All the best!
Most examples do have red text. You need to click on the example link to see the example, and the red text.