Jump to content

Recommended Posts

Posted

This super-handy batch file will allow you to reclaim some of the lost memory from your servers by disabling the Exchange Services, which is incredibly useful if you've migrated someone from SBS to Office365.

@echo off
rem Below Are All Of The Exchange Services To Be Disabled...
echo Disabling Microsoft Exchange Active Directory Topology (Was Automatic Startup)
echo Note: This Service Seems To Be Flagged So It Cannot Be Stopped So I Added A TASKKILL Entry For It!
sc config MSExchangeADTopology start= disabled
sc stop MSExchangeADTopology
TASKKILL /F /IM MSExchangeADTopologyService.exe
echo Disabling Microsoft Exchange Address Book (Was Automatic Startup)
sc config MSExchangeAB start= disabled
sc stop MSExchangeAB
echo Disabling Microsoft Exchange Anti-spam Update (Was Automatic Startup)
sc config MSExchangeAntispamUpdate start= disabled
sc stop MSExchangeAntispamUpdate
echo Disabling Microsoft Exchange EdgeSync (Was Automatic Startup)
sc config MSExchangeEdgeSync start= disabled
sc stop MSExchangeEdgeSync
echo Disabling Microsoft Exchange File Distribution (Was Automatic Startup)
sc config MSExchangeFDS start= disabled
sc stop MSExchangeFDS
echo Disabling Microsoft Exchange Forms-Based Authentication service (Was Automatic Startup)
sc config MSExchangeFBA start= disabled
sc stop MSExchangeFBA
echo Disabling Microsoft Exchange IMAP4 (Was Manual Startup)
sc config MSExchangeImap4 start= disabled
sc stop MSExchangeImap4
echo Disabling Microsoft Exchange Information Store (Was Automatic Startup)
sc config MSExchangeIS start= disabled
sc stop MSExchangeIS
echo Disabling Microsoft Exchange Mail Submission (Was Automatic Startup)
sc config MSExchangeMailSubmission start= disabled
sc stop MSExchangeMailSubmission
echo Disabling Microsoft Exchange Mailbox Assistants (Was Automatic Startup)
sc config MSExchangeMailboxAssistants start= disabled
sc stop MSExchangeMailboxAssistants
echo Disabling Microsoft Exchange Mailbox Replication (Was Automatic Startup)
sc config MSExchangeMailboxReplication start= disabled
sc stop MSExchangeMailboxReplication
echo Disabling Microsoft Exchange Monitoring (Was Manual Startup)
sc config MSExchangeMonitoring start= disabled
sc stop MSExchangeMonitoring
echo Disabling Microsoft Exchange POP3 (Was Manual Startup)
sc config MSExchangePop3 start= disabled
sc stop MSExchangePop3
echo Disabling Microsoft Exchange Protected Service Host (Was Automatic Startup)
sc config MSExchangeProtectedServiceHost start= disabled
sc stop MSExchangeProtectedServiceHost
echo Disabling Microsoft Exchange Replication (Was Automatic Startup)
sc config MSExchangeRepl start= disabled
sc stop MSExchangeRepl
echo Disabling Microsoft Exchange RPC Client Access (Was Automatic Startup)
sc config MSExchangeRPC start= disabled
sc stop MSExchangeRPC
echo Disabling Microsoft Exchange Search Indexer (Was Automatic Startup)
sc config MSExchangeSearch start= disabled
sc stop MSExchangeSearch
echo Disabling Microsoft Exchange Server Extension for Windows Server Backup (Was Manual Startup)
sc config wsbexchange start= disabled
sc stop wsbexchange
echo Disabling Microsoft Exchange Service Host (Was Automatic Startup)
sc config MSExchangeServiceHost start= disabled
sc stop MSExchangeServiceHost
echo Disabling Microsoft Exchange System Attendant (Was Automatic Startup)
sc config MSExchangeSA start= disabled
sc stop MSExchangeSA
echo Disabling Microsoft Exchange Throttling (Was Automatic Startup)
sc config MSExchangeThrottling start= disabled
sc stop MSExchangeThrottling
echo Disabling Microsoft Exchange Transport (Was Automatic Startup)
sc config MSExchangeTransport start= disabled
sc stop MSExchangeTransport
echo Disabling Microsoft Exchange Transport Log Search (Was Automatic Startup)
sc config MSExchangeTransportLogSearch start= disabled
sc stop MSExchangeTransportLogSearch
echo Please Scroll Up To Check For Errors!
pause

And if you want to re-enable:

@echo off
rem Below Are All Of The Exchange Services To Be Enabled...
echo Enabling Microsoft Exchange Active Directory Topology (Is Now Automatic Startup)
sc config MSExchangeADTopology start= auto
sc start MSExchangeADTopology
echo Enabling Microsoft Exchange Address Book (Is Now Automatic Startup)
sc config MSExchangeAB start= auto
sc start MSExchangeAB
echo Enabling Microsoft Exchange Anti-spam Update (Is Now Automatic Startup)
sc config MSExchangeAntispamUpdate start= auto
sc start MSExchangeAntispamUpdate
echo Enabling Microsoft Exchange EdgeSync (Is Now Automatic Startup)
sc config MSExchangeEdgeSync start= auto
sc start MSExchangeEdgeSync
echo Enabling Microsoft Exchange File Distribution (Is Now Automatic Startup)
sc config MSExchangeFDS start= auto
sc start MSExchangeFDS
echo Enabling Microsoft Exchange Forms-Based Authentication service (Is Now Automatic Startup)
sc config MSExchangeFBA start= auto
sc start MSExchangeFBA
echo Enabling Microsoft Exchange IMAP4 (Is Now Manual Startup)
sc config MSExchangeImap4 start= demand
sc start MSExchangeImap4
echo Enabling Microsoft Exchange Information Store (Is Now Automatic Startup)
sc config MSExchangeIS start= auto
sc start MSExchangeIS
echo Enabling Microsoft Exchange Mail Submission (Is Now Automatic Startup)
sc config MSExchangeMailSubmission start= auto
sc start MSExchangeMailSubmission
echo Enabling Microsoft Exchange Mailbox Assistants (Is Now Automatic Startup)
sc config MSExchangeMailboxAssistants start= auto
sc start MSExchangeMailboxAssistants
echo Enabling Microsoft Exchange Mailbox Replication (Is Now Automatic Startup)
sc config MSExchangeMailboxReplication start= auto
sc start MSExchangeMailboxReplication
echo Enabling Microsoft Exchange Monitoring (Is Now Manual Startup)
sc config MSExchangeMonitoring start= demand
sc start MSExchangeMonitoring
echo Enabling Microsoft Exchange POP3 (Is Now Manual Startup)
sc config MSExchangePop3 start= demand
sc start MSExchangePop3
echo Enabling Microsoft Exchange Protected Service Host (Is Now Automatic Startup)
sc config MSExchangeProtectedServiceHost start= auto
sc start MSExchangeProtectedServiceHost
echo Enabling Microsoft Exchange Replication (Is Now Automatic Startup)
sc config MSExchangeRepl start= auto
sc start MSExchangeRepl
echo Enabling Microsoft Exchange RPC Client Access (Is Now Automatic Startup)
sc config MSExchangeRPC start= auto
sc start MSExchangeRPC
echo Enabling Microsoft Exchange Search Indexer (Is Now Automatic Startup)
sc config MSExchangeSearch start= auto
sc start MSExchangeSearch
echo Enabling Microsoft Exchange Server Extension for Windows Server Backup (Is Now Manual Startup)
sc config wsbexchange start= demand
sc start wsbexchange
echo Enabling Microsoft Exchange Service Host (Is Now Automatic Startup)
sc config MSExchangeServiceHost start= auto
sc start MSExchangeServiceHost
echo Enabling Microsoft Exchange System Attendant (Is Now Automatic Startup)
sc config MSExchangeSA start= auto
sc start MSExchangeSA
echo Enabling Microsoft Exchange Throttling (Is Now Automatic Startup)
sc config MSExchangeThrottling start= auto
sc start MSExchangeThrottling
echo Enabling Microsoft Exchange Transport (Is Now Automatic Startup)
sc config MSExchangeTransport start= auto
sc start MSExchangeTransport
echo Enabling Microsoft Exchange Transport Log Search (Is Now Automatic Startup)
sc config MSExchangeTransportLogSearch start= auto
sc start MSExchangeTransportLogSearch
echo Please Scroll Up To Check For Errors
pause

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...