It may be necessary to run a job in an interactive mode which would allow the job to display an interactive window.
It is possible to configure JAMS in order to run a job interactively. To do so, perform the following steps:
- Create an interactive execution method using the appropriate method as a base method. Example: If you're using a Windows job, use the Command Method as a base, if you're using a Powershell script, then use Powershell as the base method.
- Click on Execution Methods, click on the Plus sign in the Execution Method screen.
- Fill out the form to create the new method, and use either Command or Powershell as your base method depending on the job type.
- Name the new method something like InteractiveCommand or InteractivePowershell.
- After the method has been created open the properties of the new method, and select the Properties tab and look for the Interactive option and check the box to indicate True.
- Associate your job with the new method. Open the job's properties, click on the properties tab and use the drop down menu at the top of the job window to select the new method.
- Starting with Windows Server 2008, the Interactive Detection Services Detection Service must be started in order to display the interactive window. Microsoft doesn't allow this to be started without editing the registry, and an error of "Incorrect Function" when attempting to start the service.
- To edit the registry settings perform the following steps in the following Microsoft article: https://blogs.technet.microsoft.com/home_is_where_i_lay_my_head/2012/10/09/windows-8-interactive-services-detection-error-1-incorrect-function/
Once that step is complete, the job will run and the interactive detection service will display a message indicating an application is attempting to show a window.