Kindly give me an solution for getting the output... i am using RUN COMMAND LINE action in nolio for executing the powershell script and while testing the action i am not getting the result. There was also a fishy like when i give "stdout" path till a folder it and after test it automatically changing to a file but in that nothing is written...
I tried simple powershell script that print my hostname and I see it in the action output as expected
Did you try running the script from the windows command line?
Sometime it can be related to RA agent service permission (e.g when running RA agent as local service account Vs user account)
Yes i tried running the same script from my cmd there i am getting correct output..
Does the RA agent service running with your user credentials as well?
Did you try using simple script (e.g that print only the hostname) and see if you get any output?
Yes its running with my credentials..
Thanks, i tried solving the problem now i am getting the correct output in a file in my local directory...
i think you u should use the "Run PowerShell Script" Action from the Microsoft Powershell Action Pack.
You also need to make sure you run the right Version of Powershell for you script (x86/x64 and PS Version).
Also make sure that the Agent has permissions to run powershell scripts.
Thanks for the reply...
Is there a way where i can print my output into xls. file from my Execution Server into Agent ...