MSTSC in Batch file question.

  • Thread starter Thread starter Fred
  • Start date Start date
F

Fred

I am constantly having to go to a set of servers for things like updates or
configuration. I have 7 domain controllers. It would be real nice to have
a batch file that opens MSTSC one server at a time and when I close that
session the batch file goes on the next. I can't find a command line for
terminal services something like

MSTSC DomainServer1
Pause
MSTSC DomainServer2

Even if it opened up the sessions all at once would be great.

Thanks!
Fred
 
Fred said:
I am constantly having to go to a set of servers for things like updates or
configuration. I have 7 domain controllers. It would be real nice to have
a batch file that opens MSTSC one server at a time and when I close that
session the batch file goes on the next. I can't find a command line for
terminal services something like

MSTSC DomainServer1
Pause
MSTSC DomainServer2

Even if it opened up the sessions all at once would be great.

Thanks!
Fred

Type this at the Command Prompt to see all available switches:

mstsc /?

(this method applies to most command line commands!)

Hence

mstsc /v:domainServer1
pause
mstsc /v:domainServer2
 
Thanks! That worked great!!!

Fred



Pegasus (MVP) said:
Type this at the Command Prompt to see all available switches:

mstsc /?

(this method applies to most command line commands!)

Hence

mstsc /v:domainServer1
pause
mstsc /v:domainServer2
 
That worked like a champ! I had to use quotes to get to the files.
"c:\program files\myname\my documents\the server.rdp"

Fred
 
Back
Top