Integrate customized RemoteControl in Incident-Dialog

Post Reply
User avatar
JoeStoe
Posts: 13
Joined: 18. Sep 2010, 14:04
Contact:

Integrate customized RemoteControl in Incident-Dialog

Post by JoeStoe » 22. Sep 2010, 10:47

Integrate RemoteControl in Incident-Dialog

In Matrix42 Service Store there already is an action 'Establish Remote Control' in context of incidents and computers.
However you may want to add an additional action for a more individual use of Empirum Remotecontrol or integrate any other Remote Control-solution as VNC or others.
Yes? So in this case, follow this post ;-)

Example

In my example I register a new action for the Configuration Item 'Incident'.
The action should launch Empirum Remotecontrol and establish a connection to the asset that is related to this incident,- if any asset is set.
As I want to launch the Empirum Remotecontrol with some individual switches for EmpirumRCMaster as adan:1 [use RC based on AD-securityroups and skip the optional keyphrase], I decided to register my own action ...
Let's start ...
Go for
Administration User Interface Configuration Items Incidents
and open the settings for this Configuration Item.

• Select the tabulator 'Dialog' on the left side.
• Select the first dialog 'General'
• Select 'Edit Form'

Select the tabulator 'Script' and paste this script to the very end as there already are some scripts:

Code: Select all

//
// This function integrates Empirum RemoteControl for individual use
//
function RunRC()
{
var Wsh = new ActiveXObject("WScript.Shell");
var env=Wsh.Environment("process");
var ProgPath=env("programfiles");
var RCPath = "\\Empirum\\RemoteControlMaster\\EmpirumRCMaster.exe";
var RCOptions = " -adan:1 -wuss:1 -hona:";
var RCHost= document.getElementById(SPSActivityClassIncidentAsset).value;
var RCFullPath = ProgPath + RCPath + RCOptions + RCHost;
if(RCHost != '')
{
var oExec = Wsh.Exec(RCFullPath);
while (oExec.Status == 0)
{
WScript.Sleep(100);
}
WScript.Echo(oExec.Status);
return false;
}
else
{
alert('You need to enter the computer you want to connect to in the field <Asset>!');
}
}
RegisterClienSideTask("00000000-0000-0000-0000-000000000000", "Start RemoteControl ...", "RunRC");
After you did this, select action 'Publish Form' to publish the changes.
Now you should see a new action 'Start Remote Control ...' in dialog of incident > have fun ...

garrylinn
Posts: 1
Joined: 15. Nov 2013, 07:43
Contact:

Re: Integrate customized RemoteControl in Incident-Dialog

Post by garrylinn » 19. Nov 2013, 12:41

Hey, thank you so much for the example. Really appreciate your efforts. The code has been really useful for one of my academic projects. How ever, I have made some simple modifications in the code that you have shared here.

__________________________
windowstechsupportnow.com

Post Reply

Return to “Customizing and Reporting”

Who is online

Users browsing this forum: No registered users and 4 guests