TransWikia.com

Can't stop Azure AD Connect Service

Server Fault Asked by Madwic on December 24, 2020

Have an on-prem server for Azure AD Connect service. Today I noticed that a Delta Import (we run a delta sync on the scheduler every 30 mins) was In-Progress with no estimated end time. It is sitting like that until the next scheduled sync, then it terminates it and starts the cycle over again.

I think I have pinpointed the issue (it’s with a change to the ADSYNC account) but I am unable to stop the AD Connect service to change the run profile properties.

I have:
– tried to stop the run profile from MSIClient (it just saying stopping and then running again immediately)
– tried to force stop the scheduler from powershell (hangs forever)
– tried to force stop the service on the server (hangs forever then errors out)

No windows updates have been applied in the last week and no one has touched the sync service on the server for over a month.

Event logs aren’t providing any information at all other than ProvisioningServiceAdapter::ExecuteWithRetry: Action: ImportV1 will be retried after 00:00:15. Attempt 0 of 5.

Is there any way to force stop this service beyond what I have tried? Anyone else experiencing this problem?

Sync Problem

3 Answers

You can kill the service executable from the Task Manager; at this point, I don't think it's going to do any more harm.

In the Services MMC, you can look at the service properties and find the executable name (sorry, I don't have an ADConnect server available right now). You should also configure the service as "disabled" before killing its process, so you'll be sure it doesn't restart automatically.

Answered by Massimo on December 24, 2020

You need to disable the service to prevent it from trying to recover after forcibly killing it, but you can forcibly stop the service with some powershell.

Stop-process -ID $(Get-WmiObject -Class win32_service -Filter "name = 'ADSync'").processid

Answered by Vek17 on December 24, 2020

If you run Azure AD Connect in configuration mode the synchronizations will stop.

Answered by user5870571 on December 24, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP