I am trying to use Sample Powershell MP for running SQL Queries for monitoring. Ideas is to create these monitors in console using PS Script.
These queries need to be run with Run As Account
When Powershell command prompt is opened as Run As Account credentials and the script is run, get the desired results.
Any ideas how I can create the scripts that can be used with Run As Account with Sample Powershell MP?
Thanks for suggestions.