Remove AD sync - AD connect

Modificato il Lun, 6 Mag, 2019 alle 10:25 AM

Step 1

Follow the steps in the "Azure AD connection Guide" to connect to Azure with powershell.


Step 2

Keep this PowerShell instance open, we will use it in later steps.


Step 3

Uninstall Azure AD Connect application (and services) from your local domain environment using Control Panel.Uninstall Microsoft Azure AD Connect


Step 4

Once you have AD Connect uninstalled, you will still need to disable the service through office 365. To do so, use the following PowerShell command.

Set-MsolDirSyncEnabled -EnableDirSync $false 

You will be prompted to confirm, press Y to confirm and then press Enter.

Confirm?


Step 5

To verify that directory sync was fully disabled, use the following PowerShell command:

(Get-MSOLCompanyInformation).DirectorySynchronizationEnabled 

A returned value of False will validate the deactivation.


Need to Reenable AD Connect?

If you ever need to reenable AD Connect, repeat the PowerShell procedures above and use the following command in place of step 7:

Set-MsolDirSyncEnabled -EnableDirSync $true 

Please note depending on the size of your AD environment, you may have to wait several hours before Microsoft will allow you to reactivate. You can then reinstall and configure Azure AD Connect in your environment.


Questo articolo ti è stato utile?

Fantastico!

Grazie per il tuo feedback

Siamo spiacenti di non poterti essere di aiuto

Grazie per il tuo feedback

Facci sapere come possiamo migliorare questo articolo!

Seleziona almeno uno dei motivi
La verifica CAPTCHA è richiesta.

Feedback inviato

Apprezziamo il tuo sforzo e cercheremo di correggere l’articolo