Launch local batch file prior to RDP Connection

We have a client whose network is totally locked down and our software is a cloud based RDP Server.  We do have the need for local signature pads (USB) that talk with a socket to the RDP server, but each user has to have a separate port path.  We use their server username as this unique id so that the server signature socket can direct the signature to the correct users desktop.

We are not getting a lot of support from the agencies IT group, so we would like to do this without their involvement.  They will have to install the signature pads locally, but different users log into a single device so I actually need to execute an application on the client prior to the RDP Remote App opening its connection to the server.  

I am open to ideas because I don't want to have to write an application to do this on the client and then winexec our remote app.  If this is the only way then so be it, but with todays technology I assume I am not the first to run into this problem.

Our servers are in the cloud and our RDP Terminal Server is a Windows 2008 R2 Server.  The signature pads are Topaz HSB (USB) pads and use sigsock.exe to talk through 3 ports to the server.
LVL 7
Kyle FosterCEOAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NVITCommented:
A batch file might have...
ProgramOnClient.exe
REM Run RDP
mstsc server:port

Open in new window

0
Kyle FosterCEOAuthor Commented:
I was expecting that would be the way to handle it, but the IT Director is feeling threathened by them using our software and we can't install anything local without a war.  If it has to happen then that is that, but if there is a way for me to configure the remote app to kick off a local process prior to connecting then that would be much better.
0
NVITCommented:
Yuk.
Then it looks like the remote end has to revise.
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Kyle FosterCEOAuthor Commented:
Yes Sir!  YUK is the term that comes to mind along with a few others :)
0
Kyle FosterCEOAuthor Commented:
On the remote end, I have access to the \\tsclient\c\whatever folder so I can copy a batch down to the client machine, but if I run a process it will run in the servers memory.  

Is there anyway to tell the process to run on the client.  I suppose that is the question at hand, and I can't find anything about this.  Everything is the opposite.

Kyle Foster
President/CEO
FosTech Solutions Inc.
0
NVITCommented:
> I can copy a batch down to the client machine, but if I run a process it will run in the servers memory.  

Is the process called by the .bat file? An .exe file? Maybe you can copy the .exe, too. Still, the process may depend on certain things, i.e. at the remote end.
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
You can't do that. Unless you are able to run schtask from server to the connecting client to create a task you can run remote, which again gives you a lot of security issues to deal with ...
0
Kyle FosterCEOAuthor Commented:
It seems logical that the RDP client itself would have options to perform startup and clean up tasks on the local machine.  I simply need to launch sigsock.exe with the correct parameters prior to connecting so that the signature pads talk through the socket instead of to the local machine.  Surely this isn't impossible in todays servers.
0
Kyle FosterCEOAuthor Commented:
SchTask won't work.  The sigsock,exe has to have a unique identifier for whoever is logging into the server and it must match the unique identifier in the ini file withing their server users windows folder. I can write a parameterized batch file that handles all of this, but I am trying to do it without having to deal with their IT staff.  

I could always write a little app that does this and then starts the remoteapp, but again I would have to install an exe on the client machine.  The sigsock.exe is already there.  I just need to invoke it in the clients memory prior to connection.
0
NVITCommented:
Grabbing at straws here... Would the Remote Desktop Connection dialog Programs, Start the following program on connection option work?
https://technet.microsoft.com/en-us/library/cc782233(v=ws.10).aspx
0
Kyle FosterCEOAuthor Commented:
NVIT, after reading the TechNet article the start the following program option is for the remote computer so that would once again be running on the server.

It may be that I just have to write an app that is installed on their desktop so that I can start the sigsock.exe with their username and then launch the remote app as well.  This will have to be installed on their desktops instead of the remoteapp.rdp, but if their is no other way then I will have the clients COO tell the IT Director that he has to install it.

I was just grasping for a way to kick off the exe so that I didn't have to do the political game.  Thanks.
0
Kyle FosterCEOAuthor Commented:
Qlemo,

I think that I just realized what you meant with schedule task.  It didn't click, but if I schedule a task to start in 1 second and just one once then that would run on the client machine.

Is that what you are saying?

Kyle
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
Yes, exactly. But you can create and then "manual" start the task instead of delaying it for some seconds.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.