From the course: Microsoft 365: Domains and Directories

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Remove AD synchronization

Remove AD synchronization - Microsoft 365 Tutorial

From the course: Microsoft 365: Domains and Directories

Start my 1-month free trial

Remove AD synchronization

- [Instructor] You may find that it occasionally becomes necessary to remove synchronization. So to do that, we're going to need to delve into PowerShell. So let me go ahead and open up PowerShell, and I'm going to right click on the PowerShell tile and go to more, and run as administrator. So from in PowerShell, the first thing that I need to do is to install the MS Online module. So I'll type install dash module dash name, MS Online, and if you haven't installed this module before you may receive a prompt telling you that you need to install a couple of optional components. But you don't have to do anything special other than just answering yes to those prompts if they happen to appear. In this case, we didn't receive those prompts so everything's good. So the next thing that we need to do is map our administrative credentials to a variable. I'm going to call that variable dollar sign cred. So I map the dollar sign cred variable to get credential. And when I press enter, PowerShell…

Contents