Solved

Launch a Terminal Server Session from a hyperlink in SharePoint.

Posted on 2013-01-21
4
1,499 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 Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
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…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

808 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