I’m trying to set a RunAs account for a PowerShell rule I’ve created and having some difficulty as this is my first time trying it.  Most of the documentation I read was for doing this with a monitor and not a rule as is my case.  I followed the syntax best I could, and get the following error when importing:

This management pack cannot be imported. 

XSD verification failed for the management pack.  [Line 43, Position 85]

The ‘RunAs’ attribute is not declared.

I created a new account for the runas and profile, and distributed to the server where the script runs from.

What am I doing wrong?  It seems to not like this part:



Jelly answered