Term Server & Install vs Execute mode

Most of my SBS sites have a second server that runs as a Terminal Server, since SBS2003 only supports Term Server on SBS in Admin mode, and not Application mode (see KB 828056). At times when in installing a utiliy piece of software, I need to switch the Term Server into “install” mode. KB 186498 talks about the Execute/Install mode.


Awhile back, I wrote a quick little batch file that let’s me switch between install and execute mode, and to query the mode. Perhaps someone else will find this useful!  Just copy and paste the following into a .bat file:


echo off
cls
echo.
echo —————————————-
echo Select the Change User command to be run
echo —————————————-
echo 1 = Display current setting (Query)
echo 2 = Install mode
echo 3 = Execute mode
echo 4 = Quit
:START
echo.
choice /C 1234QE /N /M Choice:
echo.
if %ERRORLEVEL% GEQ 4 goto answer4
goto answer%ERRORLEVEL%


:answer0
echo Error encountered!
goto START


:answer1
change user /query
goto START


:answer2
change user /install
goto START


:answer3
change user /execute
goto START


:answer4
echo Exiting script
pause
exit


 

One thought on “Term Server & Install vs Execute mode

  1. Thanks for the script! When i try to run it, though, i get “‘Choice’ is not recognized as an internal or external command, operable program or batch file” Thanks for any help!

Leave a Reply

Your email address will not be published. Required fields are marked *