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

Is it possible to prevent some startup programs from running when I log in to my Windows Vista desktop via Remote Dekstop.

I was hoping for a solution much like "Capster" which when added to a startup shortcut will only run the executable in it's argument if CapsLock is on. Although I want to really detect if I am logged in via remote desktop rather than looking for a key state.

The kind of apps that I would like to disable at startup are my IM client, in this case Digsby, Windows Sidebar, Samurize and UltraMon for working with multiple monitors.

share|improve this question
up vote 3 down vote accepted

Sure. Make a batch file that contains the commands to launch your "Console Only" programs. At the top of that file, check the variable called SESSIONNAME. If it equals "Console," run those programs. If not, don't.

Like this:

@echo off

IF %SESSIONNAME% == Console (

echo In console, executing programs.
REM List paths to programs here prefaced by "start " so they run async.

) ELSE (
REM Not in console, not executing programs.

share|improve this answer

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.