Submitting forms on the support site are temporary unavailable for schedule maintenance. If you need immediate assistance please contact technical support. We apologize for the inconvenience.
User is attempting to run a Windows powershell script in response to a Spotlight alarm using the "Run program" option.
Below is an example of what user is trying to execute from the run-program line within the Diagnostic Server:
powershell -Command "C:\Scripts\forward_alarm.ps1 -a testarg | out-file C:\Scripts\jc.txt -Append"
The contents of the "forward_alarm.ps1 script are below:
write-output $args
The jc.txt file never gets created.
Resolution
Before a user-defined PowerShell script can execute on a server, the script has to be either digitally-signed or the execution-policy for PowerShell on the server has to be lowered to allow the execution of scripts.
Once user changed the execution-policy for PowerShell to "RemoteSigned", the Spotlight Diagnostic Server is able to execute user PowerShell script(s).
Your Request will be reviewed by our technical reviewer team and, if approved, will be added as a Topic in our Knowledgebase.
Recommended Content
Product(s):
Spotlight on SQL Server Enterprise
Topic(s):
Technical Solutions
Article History:
Created on: 5/7/2011 Last Update on: 5/7/2023
Thank you for your feedback for Topic Request
Your Request will be reviewed by our technical reviewer team and, if approved, will be added as a Topic in our Knowledgebase.
Welcome to Quest Support
You can find online support help for Quest *product* on an affiliate support site. Click continue to be directed to the correct support content and assistance for *product*.
Search All Articles
IE 8, 9, & 10 No longer supported
The Quest Software Portal no longer supports IE8, 9, & 10 and it is recommended to upgrade your browser to the latest version of Internet Explorer or Chrome.