Solved

Launch a Terminal Server Session from a hyperlink in SharePoint.

Posted on 2013-01-21
4
1,430 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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Familiarize people with the process of utilizing SQL Server functions 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 Ac…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

705 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

19 Experts available now in Live!

Get 1:1 Help Now