Solved

Launch a Terminal Server Session from a hyperlink in SharePoint.

Posted on 2013-01-21
4
1,452 Views
Last Modified: 2013-01-23
I use the following VB code to launch a TS session with a button in an MS Access form:

Shell ("mstsc.exe")

Two things......I need to do this from a hyperlink in Sharepoint and I also need a specific TS opened ("XX.XXX.X.XX")

As always, your assistance is appreciated.
0
Comment
Question by:EMCIT
  • 2
  • 2
4 Comments
 
LVL 44

Expert Comment

by:Rainer Jeschor
ID: 38802898
Hi,

1. Create a document library
2. Open "mstsc.exe" locally and create connection files for each connection point (using save as)
3. Upload the .rdp files to the library
4. Create / use links to these files
5. Update web application trusted mime types using Powershell script:
$webApplication = Get-SPWebApplication "http:/yourwebapplicationurl" 
$webAppApplication.AllowedInlineDownloadedMimeTypes.Add("application/x-rdp")
$webApplication.Update() 

Open in new window


That should do the trick.

HTH
Rainer
0
 
LVL 11

Author Comment

by:EMCIT
ID: 38811147
This is excellent Rainer! One more on the wish list though. If you like I can create a new question so you get double points......Can I pass username and password from the SharePoint session to the rdp file?
0
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 38811560
Hi,
more points would always be welcome, but in this case the answer would be short ;-)

First passing the password would not be possible as Sharepoint has no clue about it.
Second passing anything else (e.g. address or user name) would require to have a programmatic solution which generates the RDP file on-the-fly.

HTH
Rainer
0
 
LVL 11

Author Closing Comment

by:EMCIT
ID: 38811575
Thanks very much
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now