Manage Windows Services for Exchange Cumulative Updates

Exchange Server 2019 LogoServices of third-party software solutions often interfere with installing a new Exchange Server cumulative update, because these services have a file lock active. 

To avoid any issues when installing a CU, or having the prerequisites check fail due to open files, you simply stop the Windows services and ensure that those services do not restart automatically. Especially monitoring solutions that use some kind of watchdog service are a candidate that you must disable for installing an Exchange Server CU.

The following two PowerShell examples help you to prepare the Windows services for installing an Exchange Server CU.

 

Prepare for CU installation

In preparation for the installation of an Exchange Server cumulative update, you can use the following PowerShell commands.

# Disable and stop services or just stop services# Add other services as needed# Set SMEX service to manual and stop servicesGet-Service -Name 'ScanMail*' | Set-Service -StartupType ManualGet-Service -Name 'ScanMail*' | ?{$_.Status -eq 'Running'} | Stop-Service -Force# Stop SMEX SQL Express instanceGet-Service -Name 'MSSQL*' | ?{$_.Status -eq 'Running'} | Stop-Service -Force# Disable and stop ENow monitoring servicesGet-Service 'ENow*' | Set-Service -StartupType DisabledGet-Service 'ENow*' | ?{$_.Status -eq 'Running'} | Stop-Service -Force# Stop NetBackup serviceGet-Service -Name 'NetBackup*' | ?{$_.Status -eq 'Running'} | Stop-Service -Force

 

Post CU installation

After installing the Exchange Server cumulative update you should restart your computer. I recommend initiating a check for additional Windows Updates for the CU. This helps to ensure that you do not only have the latest CU installed, but required security updates as well.

# Enabling and starting services# Adjust the list of services as needed# Enable and start SMEX servicesGet-Service -Name 'ScanMail*' | Set-Service -StartupType AutomaticGet-Service -Name 'ScanMail*' | Start-Service# Enable and start ENow Monitoring servicesGet-Service -Name 'ENow*' | Set-Service -StartupType AutomaticGet-Service -Name 'ENow*' | Start-Service

 

Enjoy Exchange Server.

 

 

%d Bloggern gefällt das: