you need to have nsh installed on the system that is trying to run this script. you have a couple options:
or, make sure the first line of the script has '#!/bin/nsh' and chmod the script so it has execute for the user running the script (eg chmod 755 <script> would give owner, group and world execute) and then ./script would run it from the cwd.
1 of 1 people found this helpful
what modification would be needed to the above command so that it can take the server(IP) as variable while running the job? I mean to say i need to run this on multiple targets
You can create the nsh script job as type 2, i think that should take care of running it on multiple targets.
In this case i am providing the Ip address/Hostname(Server) within the command, nexec -i Server cmd /c "C:\Program Files\test.exe", so how do i go about it while using for multiple servers?
I was able to figure out it by giving parameter and using as script type 1