Solved

Launch a Terminal Server Session from a hyperlink in SharePoint.

Posted on 2013-01-21
4
1,532 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CISCO WIFI 6 72
Outlook 2016 VB code syntax 4 37
Add Promise to Existing Code 6 29
Multiple tables for a tabbed form 2 33
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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…
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 …

734 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