-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading Exchange 2019 does not work #496
Comments
@johlju, this is not a bug in the resource module. As mentioned above it is "the Exchange setup is killing and disabling the winmgmt (Windows Management Instrumentation) service. By killing the winmgmt service it is also killing the LCM". When installing or upgrading Exchange, the setup files are created in / copied to |
I labeled it external for that case - maybe it is not a bug doing interactive or upgrade from command line but it is a bug doing it trough LCM. Unless there is a way to tell Exchange to wait for the restart to later (so that we can control it) the we can’t fix anything here, agree. Guessing we closing this issue until something changes that can make this work in LCM. |
I use Chef to install Exchange and also do the CU every time they are out. The CU process has to be done through a PowerShell resource such as this one instead of using the one that is provided to install it: powershell_script 'upgrade_exchange' do
code '.\setup.exe /IAcceptExchangeServerLicenseTerms_DiagnosticDataON /Mode:Upgrade'
guard_interpreter :default
elevated elevate
cwd base_dir
sensitive false
timeout 10800
user username
password userpswd
end Not sure if this helps but that is our workaround. |
I think that any other automation product except DSC will do. We know that the Exchange installation stops the |
Problem description
Upgrading Exchange does not work for the simple reason that the Exchange setup is killing and disabling the
winmgmt
(Windows Management Instrumentation) service. By killing thewinmgmt
service it is also killing the LCM.One can easily see this form the event log:
In this case, the LCM throws this error:
Exchange enables and starts the
winmgmt
service later but when starting the LCM again usingStart-DscConfiguration -UseExisting -Wait -Force -Wait
, things did not finish as expected. In some cases I no longer had an Exchange service on the machine and DSC could no longer start because it could no longer find an installed Exchange. All this does not look very reliable.It looks to me like upgrading Exchange with this DSC resource module never worked because the code did not compare the installed version and the desired version until recently: #410.
When removing write access to the
winmgmt
service, the Exchange setup complains:Verbose logs
DSC configuration
Suggested solution
This needs more investigation.
Operating system the target node is running
Exchange Server edition and version the target node is running
PowerShell version and build the target node is running
xExchange version
The text was updated successfully, but these errors were encountered: