Multi-Remote Desktop (RDP) via Run Line

 This is a script I wrote real quick one day when I got tired of clicking on the Terminal Services icon 4 times when I wanted to connect to 4 servers. With this script, I simply open up the run line (Windows+R) and type "rdp server1 server2 server3" all the way to up to 9 connections at once. I know a few people around my office use this, even if they dont connect to multiple servers at once. Must have for the admin who uses mstsc.exe to manage his or her network.

rdp.bat

 @echo off

echo blog@integrii.net
echo Multiple RDP Connection Batch File Shortcut
echo http://blog.integrii.net
echo ------------

color 1f

if not "%9"=="" GOTO nine
if not "%8"=="" GOTO eight
if not "%7"=="" GOTO seven
if not "%6"=="" GOTO six
if not "%5"=="" GOTO five
if not "%4"=="" GOTO four
if not "%3"=="" GOTO three
if not "%2"=="" GOTO two
if not "%1"=="" GOTO one
if "%1"=="" echo No Servers Specified!
GOTO end

:one
start mstsc /v: %1
goto end

:two
start mstsc /v: %1
start mstsc /v: %2
goto end

:three
start mstsc /v: %1
start mstsc /v: %2
start mstsc /v: %3
goto end

:four
start mstsc /v: %1
start mstsc /v: %2
start mstsc /v: %3
start mstsc /v: %4
goto end

:five
start mstsc /v: %1
start mstsc /v: %2
start mstsc /v: %3
start mstsc /v: %4
start mstsc /v: %5
goto end

:six
start mstsc /v: %1
start mstsc /v: %2
start mstsc /v: %3
start mstsc /v: %4
start mstsc /v: %5
start mstsc /v: %6
goto end

:seven
start mstsc /v: %1
start mstsc /v: %2
start mstsc /v: %3
start mstsc /v: %4
start mstsc /v: %5
start mstsc /v: %6
start mstsc /v: %7
goto end

:eight
start mstsc /v: %1
start mstsc /v: %2
start mstsc /v: %3
start mstsc /v: %4
start mstsc /v: %5
start mstsc /v: %6
start mstsc /v: %7
start mstsc /v: %8
goto end

:nine
start mstsc /v: %1
start mstsc /v: %2
start mstsc /v: %3
start mstsc /v: %4
start mstsc /v: %5
start mstsc /v: %6
start mstsc /v: %7
start mstsc /v: %8
start mstsc /v: %9
goto end

:end
exit