O envio de formulários no site de suporte está temporariamente indisponível para manutenção programada. Se precisar assistência imediata, entre em contato com o suporte técnico. Lamentamos o inconveniente.
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.
Resolução
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.
Conteúdo recomendado
Produto(s):
Spotlight on SQL Server Enterprise
Tópico(s):
Technical Solutions
Histórico do artigo:
Criado em: 5/7/2011 Última atualização em: 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.
Bem-vindo ao Suporte
Você pode encontrar ajuda de suporte on-line para *produto* da Quest em um local de suporte afiliado. Clique em Continue (Continuar) para ser direcionado ao conteúdo de suporte correto e à assistência a *produto*.
Search All Articles
Encerramento do suporte aos navegadores IE 8, 9 e 10
O Portal da Quest Software não é mais compatível com IE8, 9 e 10. Recomendamos a atualização do navegador para a versão mais recente do Internet Explorer ou do Chrome.