Forum Discussion
Can't get AD sync to Azure going
Hi Jon,
Today I have experience the same issue.
What you have to do is enable Directory Syncronization by Powershell.
Connect to Azure AD and then execute the following:
To Enable Directory Sync
Set-MsolDirSyncEnabled -EnableDirSync $true
To Verify Directory Sync state
(Get-MsolCompanyInformation).DirectorySynchronizationEnabled
After this you now can install AD Connect as C_the_S said.
As Dean_Gross said It always recomended to install on a Separate Machine.
- AnonymousSep 20, 2017
Wel, I can't even connect to Ofice 365 with Powershell any more. Now I get:
PS C:\Users\<redacted>\Documents\WindowsPowerShell> Import-Module msonline Import-Module : The specified module 'msonline' was not loaded because no valid module file was found in any module directory. At line:1 char:1 + Import-Module msonline + ~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (msonline:String) [Import-Module], FileNotFoundException + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommandSo all I have to do is to grab that module, right! Hah!
Google search takes me to https://www.powershellgallery.com. From the front page I learn that I need the PowerShellGet module. There's lots of versions depending on which PowerShell version I have. So another Google search tells me how to find my version which is 4. So I have to install the PackageManagement PowerShell Modules Preview - March 2016 using the msi installer. I do so. But it doesn't load automatically, Find-Module is undefined. So how do I load a module? https://msdn.microsoft.com/en-us/library/dd878284(v=vs.85).aspx tells me "Beginning in Windows PowerShell 3.0, modules are imported automatically when any cmdlet or function in the module is used in a command." Sure they are. The same page tells me that "get-command find-module" should work. It doesn't. Howzabout Import-Module. Whoopsie, I can't find the name of the PackageManagement module anywhere, including C:\Windows\System32\WindowsPowerShell\v1.0\Modules.
Oops, I missed that I should install the latest Nugent module with powershell Install-PackageProvider Nuget –Force Exit. Which, of course, fails for an undefined term.
Finally I Google up https://technet.microsoft.com/en-us/library/dn975125.aspx which leads me to https://go.microsoft.com/fwlink/p/?LinkId=286152 and http://connect.microsoft.com/site1164/Downloads/DownloadDetails.aspx?DownloadID=59185. Opening the latter I was able to turn on sync per Nuno's message.
There's 1.5 hours I'll never get back.