Formula and RDP

Mark Curtis

New Member
Joined
Feb 16, 2024
Messages
4
Office Version
  1. 365
  2. 2016
  3. 2013
  4. 2010
  5. 2003 or older
Platform
  1. Windows
I am trying to take a sheet of RDP systems where you click on a cell containing the IP of the system, it opens an RDP and fills in the IP from this field. I have the parts figured out where it displays my data and where it opens up the RDP session, but so far I haven't figured out the mechanism to insert the IP into the address field on the RDP session box.

Win 10/O365. I do not want to prefill credentials as the sheet is shareable and users will need to use their own user/pass combo when they connect.

Example:
Cell displays 192.168.15.50. Underlying Hyperlink C:\Windows\System32\MSTSC.exe ????? 192.168.15.50 There should be something here to input the desired IP automatically into the RDP form that comes up.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
untested


Shell "C:\Windows\System32\MSTSC.exe /v:192.168.1.50 /prompt"

more info here:
Outstanding, i will give that a try. The shell and /prompt are two things i didn't try. Will update with results.
 
Upvote 0
untested


Shell "C:\Windows\System32\MSTSC.exe /v:192.168.1.50 /prompt"

more info here:
Good morning. That works from win key + r then input the code. I'm trying to feed that into command by clicking the cell but so far it's not going well.
 
Upvote 0
Insert hyperlink >> %system%\\cmd.exe || c:\windows\system32\mstsc.exe /v:192.168.15.50 /prompt breaks at the pipe instead of feeding.
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,671
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top