Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Launch a Terminal Server Session from a hyperlink in SharePoint.

Posted on 2013-01-21
4
Medium Priority
?
1,638 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 2000 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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
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 …

688 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