Hello
Thank you for your question and reaching out.
Based on the Exception error you are receiving "MSExchangeADTopology on computer '.'. ---> System.ComponentModel.Win32Exception: The service did not respond to the start or control request in a timely fashion".
The Service gets timeout for starting services on the inactive server is 15 minutes but when it fails right away (after about 30 seconds) it is because of a windows timeout that is occurring.
Solution: Apply the following Registry change to extend the timeout value for starting of services.
- Open regedit on the replica and find the following location: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
- Point to New, and then click DWORD Value. In the right pane of Registry Editor, notice that New Value #1 (the name of a new registry entry) is selected for editing.
- Type Services PipeTimeout to replace New Value #1, and then press ENTER.
- Right-click the ServicesPipeTimeout registry entry that you created in step c, and then click Modify. The Edit DWORD Value dialog box appears.
- In the Value data text box, type TimeoutPeriod, and then click OK
- The value of TimeoutPeriod is in milliseconds. Set the value for TimeoutPeriod to 300000 (300sec). By default it is set to 30000 that is 30 sec.
- Power-cycle the Server
- Disable any Antivirus product you may have.
--If the reply is helpful, please Upvote and Accept as answer--