MSTSC in Batch file question.

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
 
P

Pegasus \(MVP\)

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
 
F

Fred

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
 
F

Fred

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top