Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

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.

share|improve this answer
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
add comment

Your Answer

 
discard

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.