Hi,
I am trying to execute a powershell script from batch file when an alarm is triggered.
I have used 'Run a command' action to invoke the script.
when the alarm is triggered, windows command like cd,dir,mkdir and etc given within the batch file are executed fine.
However, it fails to start the powershell script.
The contents of my bat file :
dir >> test.txt
Can some one tell me if i am missing something here?
Thanks in advance.
I'd recommend reading through this blog entry. It's older, but still applicable in most cases.
http://blogs.vmware.com/vipowershell/2009/09/how-to-run-powercli-scripts-from-vcenter-alarms.html
Thanks for the response.. i tried the steps from the blog..
but still havent managed to invoke the powershell script through my alarm action.