@echo off if "%1" == "start" goto %1 if "%1" == "stop" goto %1 goto usage :start net start MSExchangeSA net start MSExchangeDS net start MSExchangeIS net start MSExchangeMTA net start MSExchangeES net start MSExchangeINS net start MSExchangeIMC goto ende :stop net stop MSExchangeIMC net stop MSExchangeINS net stop MSExchangeES net stop MSExchangeMTA net stop MSExchangeIS net stop MSExchangeDS net stop MSExchangeSA goto ende :usage echo usage %0 start/stop goto ende :ende