Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a logon script that I want to be run when users login to remote desktop on my WinServer2008r2 box. I know I can do this client-side (in the RemoteDesktopClient "Run Program" options) but would rather it be enforced server-side. If I assign the logon script to a GPO, the script will be run whenever the user logs into their local PC.

I would like to assign the logon script to the Remote Desktop Users group, but only when they're logging into remote desktop, not when they're logging into their own system.


share|improve this question

Use a group policy to apply this setting.

share|improve this answer
I only want the rule to be applied upon login to RemoteDesktop, not when they login to their local PC on the domain... – Jonathan Sep 2 '12 at 11:56
Did you even bother reading the page I referred you to? Create a GPO that enforces the Start a program on connection setting. It does the exact same thing as the Start a program section in the Remote Desktop client. See here as well. – Ansgar Wiechers Sep 2 '12 at 12:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.