How can I start a program from a login batch script if the Command Prompt is disabled?

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.


Solution 1:

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.