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.

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
add comment

1 Answer

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.

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

:END
share|improve this answer
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.