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