Running from a RMA Active Agent (4.12) on Win2k8r2 I want to execute a 64 bit powershell (to use modules not available in the 32 bit version of PS):
So instead of calling (from HM 8.82):
powershell %schript% %params%
(which glues the .PS1 extension to the scriptname OK)
I have to call it like this:
c:\windows\sysnative\windowspowershell\v1.0\powershell.exe -file %Script% %Params%
Now HM stops adding the required .PS1 extension to the script and creates the scriptname ending in .BAT which give me the error:
error: invalid result (Processing file '....\temp\xxx.bat' failed because the file does not have a '.ps1' extension. Specify a valid powershell file script name and try again.)
Can I somehow manipulate what extension is given to the script in Hostmonitor ?