Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to stop the exchange services in command prompt?

1,832 views
Skip to first unread message

MOR User

unread,
Apr 21, 1999, 3:00:00 AM4/21/99
to
I want to stop the services in command prompt and copy the exchange
directories. How can i stop the services by using command in a .bat file.

Regards

Mark Rebholz

unread,
Apr 21, 1999, 3:00:00 AM4/21/99
to
It depends whether or not you do this FROM the exchange server itself, or from
another server on the domain. If the batch file runs on another server on the
domain, use the following in a CMD file :

netsvc "Microsoft Exchange Connector for Lotus cc:Mail" \\servername /stop
netsvc "Microsoft Exchange Internet Mail Service" \\servername /stop
waitsecs 5
netsvc "Microsoft Exchange Message Transfer Agent" \\servername /stop
waitsecs 1
netsvc "Microsoft Exchange Information Store" \\servername /stop
waitsecs 30
netsvc "Microsoft Exchange Directory" \\servername /stop
waitsecs 5
netsvc "Microsoft Exchange System Attendant" \\servername /stop

Replace SERVERNAME with the name of your MSX server. If you don't have
NETSVC, it can be found on the NT 4.0 Res Kit. You may need to change the
time specified by WAITSECS here to get each one to stop in time.
Alternatively, stop the "System Attendant" service, which will stop all other
services one by one.

If your batch file is to be run FROM the server, do this :

net stop "Microsoft Exchange Service"

hope this helps
Mark.

In article <01be8bdb$50cd8ee0$a91dcb6f@SERVER2>,

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own

Kimmo Bergius [MVP]

unread,
Apr 21, 1999, 3:00:00 AM4/21/99
to
Look in the Exchange 5.5 FAQ, which is included in the Exchange server 5.5
Resource Guide avaliable on the TechNet CD's (chapter 12). Contains an
example command file and some instructions on its use. Example also included
below:

REM // stop all services
echo Stopping Services...

net stop MSExchangeMSMI

net stop MSExchangePCMTA*

net stop MSExchangeFB

net stop MSExchangeDX

net stop MSExchangeIMC

net stop MSExchangeMTA

net stop MSExchangeIS

net stop MSExchangeDS

net stop MSExchangeSA

REM - call the shutdown command here. (This command requires that you
have the Windows NT Resource Kit compact disc.)

*service name is user defined

Cheers,
Kimmo

MOR User <m...@sim.net.tr> wrote in message
news:01be8bdb$50cd8ee0$a91dcb6f@SERVER2...

Pamela McMickin

unread,
Apr 21, 1999, 3:00:00 AM4/21/99
to
If you just want to stop the exchange services, put the following command
lines in a batch file:
net stop msexchangesa /y
net stop msexchangesa /y
net stop msexchangesa /y

Yes, the same line three times.

--Pam McMickin

MOR User wrote in message <01be8bdb$50cd8ee0$a91dcb6f@SERVER2>...

Kirill S. Palagin

unread,
Apr 21, 1999, 3:00:00 AM4/21/99
to
net stop mssexchangeSA /yes
net stop mssexchangeSA /yes
(yes, twice).
0 new messages