Is there a way or a solution. I have a small .EXE file that i would like our Service Desk team to be able to launch from the the WI. Is there an easy way to achieve this?
To simply have Active Roles just run an EXE file, I would think this could be done via an Automation Workflow that calls the EXE from a PowerShell script. Delegate access for the Service Desk members to an Automation Workflow. Then from the WI they could browse to Directory Management -> Workflows and launch the workflow When executed, this workflow would start a PowerShell Script Module that kicks off the EXE file.
I don't know that I would put my code in an OnInit since (as you may know) it is typically used for "staging" the runtime environment (by pre-loading parameters and library scripts for example).
Just put it in a simple function like "RunMyComandLine" and then permission for launch as Rich suggested.
So i have the code below. I have created a work flow but when i run the work flow i dont see the application open. The .exe is on the local server that its being run on.
Start-Process -filepath C:\AccountLockOut\ADLockouts.exe
And you won't...
At best, the application will be launched on the AR server that the user is connected to.
The user will not be able to interact with it.
So you will need to find a way to send any required parameters to the application (this can be done via workflow parameters) and to deal with its output (probably in the format of output re-directed to a file share on the AR server?)