Scom

Testing SCOM scripts in Powershell ISE – ‘MOM.scriptAPI’ doesn’t return property bag

Testing SCOM scripts in Powershell ISE – ‘MOM.scriptAPI’ doesn’t return property bag

I was going to write a blog post on this, as its annoying as heck, but I found this great Article. However, to sum it up The Powershell ISE will never return a property bag.Always test your scripts in the console