When I am executing programs from the Actions menu from Application Manager the program gives me the message: "The Program exited with code 1". The action has been successfully executed but nothing happens when I run the program.The batch file works fine when I execute it.

When I am executing programs from the Actions menu from Application Manager the program gives me the message: "The Program exited with code 1". The action has been successfully executed but nothing happens when I run the program.The batch file works fine when I execute it.

Solution: When you use batch scripts(.bat), always use at least 2 batch scripts, one script starting another one.   E.g.: 
script1.bat: call scriptx.bat 
scriptx.bat: echo 'hello'
It's also good to know how script1.bat works on the machine so send the output to log file.
script1.bat: call scriptx.bat > script1.log
When your script works fine and you still get the message: "The Program exited with code 1" then add at the end of script1.bat following command:
set %errorlevel=0

                  New to ADSelfService Plus?

                    • Related Articles

                    • Execute Program action - Enterprise Admin server behavior & Known limitation

                      Behavior in Enterprise Admin server In case of Enterprise Admin users, following is the behavior of Execute Program action: All Host in the selected Monitor Group option is not supported Auto Select Host option is partially supported. Since the host ...
                    • Execute Program Action - BlackListCommands

                      There are certain commands which are vulnerable to security threats in both Windows and Linux operating systems such as del and deltree. Such commands can be restricted for execution from Execute Program action. By default, we are restricting the ...
                    • Service Now Event Integration using Webhook / Rest API Action

                      Steps to perform in Service Now 1) Login to your ServiceNow Instance(dev*****133.service-now.com) 2) Search for the Rest API Explorer and open it 3) In the Rest API Explorer page choose the Namespace and API Name with the proper API version. For ...
                    • Unable to update Daylight Saving Time (DST) in Applications Manager

                      Issue: The server System Time present in the bottom left corner of the Applications Manager UI does not display the Daylight Saving Time (DST) difference. It has a 1-hour time difference from the actual time. Reason: The Daylight Saving Time (DST) ...
                    • Critical\Warning alarm was raised, but action wasn't triggered

                      1.)   Ensure that actions have been associated for the attribute that generated the alarm. For example, if the CPU utilisation of the server exceeded the permissible levels and generated the alarm, navigate to Monitor page-> Configure Alarm and ...