Al momento non è possibile inviare moduli sul sito di supporto per pianificare la manutenzione. Se necessiti di assistenza immediata, contatta il supporto tecnico. Ci scusiamo per il disagio.
Questo articolo ti è servito per risolvere il problema?
Seleziona valutazione
Titolo
Running powershell script in response to alarm
Descrizione
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.
Risoluzione
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).
Feedback inviato
Questo articolo ti è servito per risolvere il problema?
Your Request will be reviewed by our technical reviewer team and, if approved, will be added as a Topic in our Knowledgebase.
Contenuti consigliati
Prodotto/i:
Spotlight on SQL Server Enterprise
Argomento/i:
Technical Solutions
Cronologia articoli:
Data di creazione: 5/7/2011 Ultimo aggiornamento: 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.
Questo è il portale del supporto
Puoi trovare aiuto e supporto online per Quest *prodotto* sul sito di supporto di un affiliato. Fai clic su Continua per essere reindirizzato ai contenuti e all'assistenza corretti per *prodotto*.
Cerca in tutti gli articoli
Internet Explorer 8, 9 e 10 non sono più supportati
Il portale Quest Software non supporta più Internet Explorer 8, 9, e 10. Si consiglia di aggiornare il browser all'ultima versione di Internet Explorer o Chrome.