I was recently developing a scom powershell script to create a task to display unused indexes on a SQL Server DBEngine.
While “SCOMsifying” this script I discovered some nasty bug (lost alot of time with this):
You can not use “$Data” or “$MPElement” in your script not even when you comment this.
Using one of those strings will lead to an error: “The configuration specified for Module PA is not valid New-Object System.Data.DataSet”
While I Found my solution, I just wonder:
is there somebody else who had this issue and did you found a way to solve this without removing the strings?
Are there other strings that trigger this issue?