question

MatthewCuddy-9048 avatar image
0 Votes"
MatthewCuddy-9048 asked azure-cxp-api edited

'Initialize-ADSyncDomainJoinedComputerSync' is not recognized

Please help me figure out what I am doing wrong. I am trying to set up the scp for ad azure hybrid join. but this step fails:

PS C:\Windows\system32> Import-Module -Name "C:\Program Files\Microsoft Azure Active Directory Connect\AdPrep\AdSyncPrep.psm1";

$aadAdminCred = Get-Credential;

Initialize-ADSyncDomainJoinedComputerSync –AdConnectorAccount [connector account name] -AzureADCredentials $aadAdminCred;
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Initialize-ADSyncDomainJoinedComputerSync : The term 'Initialize-ADSyncDomainJoinedComputerSync' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:5 char:1
+ Initialize-ADSyncDomainJoinedComputerSync –AdConnectorAccount [connec ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Initialize-ADSy...nedComputerSync:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException


I am running it on my primary domain controller, which has zure active directory connect v 1.5.45.0 loaded

azure-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JamesHamil-MSFT avatar image
0 Votes"
JamesHamil-MSFT answered

Hi @MatthewCuddy-9048 , have you installed all of the appropriate modules? I would run these commands and install the AzureAD module. If this doesn't work please let me know.

Thank you,
James


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

That helped a lot. I did not have the AzureAD module loaded.

Can you please clarify the [connector accountname] variable. What goes here, how do I get it in the right format?

0 Votes 0 ·