Remote desktop session; add desktop shortcuts and run programs on connect

rcfant89

Distinguished
Oct 6, 2011
546
3
19,015
I need to either:

A: add desktop shortcuts to an RDP session (for all users)

OR

B: run programs on connect

This needs to be for all users connecting to this PC, not just me. I have been looking into B and I have tried multiple things, from regedit to editing the RDP file to add that program to start up, nothing works. It works in windows 7 but ndot 10. I am somewhat lost. It seems like it should be exceedingly simple but no.

On the RDP file, I went to program, start a program, selected the program path, still doesn't work. Also tried editing the shell script here:

alternate shell:s:"C:\Program Files\Wireshark\"
and
shell working directory:s:"C:\Program Files\Wireshark\"

and tried with quotes and without.

Can someone please give me a working method that will either run wireshark whenever any user connects to this windows 10 PC via RDP, OR, tell me how to add a desktop shortcut to the desktop of this machine for all users connecting to this pc via RDP. Obviously I can add it to mine but how about for all users?
 
Solution
As far as putting a shortcut on all remote users desktop just put the shortcut here: c:\Users\Public\Desktop

In regards to running an application. Force logout when using RDP, and then have task scheduler run program on login.