Yes, that will probably be the easiest way. In your ScreenConnect install directory with all of the other files, you can create a new file to do this. Here is the source:
Code:<%@ WebHandler Language="C#" Class="CreateSession" %>
using System;
using System.Web;
public class CreateSession : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
var sessionCode = context.Request.QueryString["Code"];
using (var sessionManager = Elsinore.ScreenConnect.ServerExtensions.SessionManagerChannelFactory.CreateChannel())
{
sessionManager.CreateSession(Elsinore.ScreenConnect.InvitationType.Code, sessionCode, "System");
}
}
public bool IsReusable { get { return false; } }
}
Name the file CreateSession.ashx (attached as .txt). Create a session by going to http://yourscreenconnectsite/CreateSession.ashx?Code=mycode
Let me know how this works for you.