Our Terminal Servers has two Group Policies in place: one that includes disabling the command prompt, and another that runs a batch script to startup a program upon login.

But the startup program never gets launched. I've tried running it manually and am getting an error that "The command prompt has been disabled by your administrator", so I am guessing the command prompt restriction is getting applied before the login script gets run, but I'm not sure what I can do about this. (The program starts up fine if I login with a user that doesn't have the command prompt restriction)

Is there a way to run a .bat login script to startup a program on login, while still keeping the command prompt disabled?

The login script is simply start \\networkshare\folder\someprogram.exe, and our terminal servers are Windows 2003 and 2008.


Instead of using a logon script for this, why not just use the lesser-known Run these programs at login GPO. You shouldn't need to have the command prompt available for this.

  • 1
    Thank you, I wasn't aware you could set startup programs through GPO like that. Starting the program from Run these programs at login worked :) – Rachel Aug 29 '12 at 13:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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