Ok I think i've got it. The SMTP Service is dependant on the IISAdmin service. I'll add a line to my batch file to restart it afterwards.
I'll report back after tonight's backup.
Main Topics
Browse All TopicsI have a batch file which is scheduled to run during the night. It stops my SqlServer and Exchange Server services in order to do a backup. I must be doing something wrong because the Default SMTP Virtual Server does not restart afterwards. I have to go into System Manager and restart it manually. Here's what I am doing. Can anyone suggest how to fix it?
Net Stop MSExchangeIS /y
Net Stop IISAdmin /y
Net Stop ExIFS
Net Stop MsSqlServer
ntbackup backup c: d: /p "4mm DDS" /n "Daily Backup" /l:s /v:yes /um
Net Start MsSqlServer
Net Start EXIFS
Net Start IISAdmin
Net Start MSExchangeIS
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Great, so you backup the files. Have you ever tried doing a restore? From what I've seen and understood, Exchange doesn't work that way. You should be doing an information store backup - NOT a backup of the priv.edb and pub.edb while the exchange part of the server is offline.
Are you doing System State Backups as well?
People SO often make the mistake of assuming if I just get the files, I'm fine - not with Windows. You need the files and the registry and Exchange is a beast that doesn't (or hasn't necessarily) followed conventional thinking. Before you think your safe, I'd suggest doing a restore once or twice. Preferrably on a different, but identical, system. Or make an image of this system so you can be absolutely certain to get your data back.
SQL CAN work this way, but I'd suggest scheduling SQL to do it's own backup to a file on the disk. Then your backup job would backup that file and you'd have a good backup without shutting SQL off.
ipend,
you don't need to stop exchange services to do a backup. you should be doing an online backup with an exchange aware backup system. ntbackup is more than capable of doing this, here's a good tutorial: http://www.petri.co.il/
doing an 'offline' backup, such as you are doing, does not flush the transaction log files which is a big problem (or will be soon enough). the link i posted above lists advantages/disadvantages of both methods.
kris.
Gentlemen! No fighting please.
I have restored Exchange Files previously when a corruption has occured. I also once had a problem whereby Exchange files were 'going missing'. This turned out to be Symantec antivirus being overzealous during a scheduled scan. I just restored the files from tape and it worked.
I take Leew's point that you need other things also to get back on it's feet. But presumably he's talking from the point of view of complete disaster recovery. I do regular ASR backups that will hopefully take care of that.
I concede fully that I should be doing an Exchange backup within NTBackup. I will look into doing it. But does this take care of backing up Exchange's registry settings?
I have several customers. Most of the others use Backup Exec which is far more flexible about doing all of this.
the best way to get registry settings is by doing a system state backup. again, easily done with ntbackup. this also comes in handy for any server running owa, as it also backs up the iis metabase. i do ntbackups of the exchange IS and the system state, then backup those bkf files to tape.
ya, you should exclude all exchange directories and edb and stm files and all exchange log files from any kind of scan.
kris.
Business Accounts
Answer for Membership
by: keith_alabasterPosted on 2005-12-29 at 03:13:10ID: 15569729
Your shutdown script is closing off services which are dependants on other services. IE Other services need these ones to be able to continue running therefore the above script closes down all the services associated with them as well.
When you start them up, just these ones start. They do not need the other services so they are not started automatically.
Right click the services mentioned above and look at the dependencies. This will show you the ones that need to be included within your script.