ADSyncSyncCycle CMDLET Missing

Gavin O'Connor 1 Reputation point
2022-04-06T18:02:47.087+00:00

We are looking to sync our AD Windows 2012 R2 to Azure AD using the command:

Start-ADSyncSyncCycle -PolicyType Delta

We have imported the module using:

Import-Module -Name "C:\Program Files\Microsoft Azure AD Sync\Bin\ADSync" -Verbose

But we still get the error:

Start-ADSyncSyncCycle : The term 'Start-ADSyncSyncCycle' 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:1 char:1

  • Start-ADSyncSyncCycle -PolicyType Delta
  • ~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : ObjectNotFound: (Start-ADSyncSyncCycle:String) [], CommandNotFoundException
  • FullyQualifiedErrorId : CommandNotFoundException

Please advise how to get the ADSyncSyncCycle cmdlet installed.

Thanks

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,581 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Andy David - MVP 142.3K Reputation points MVP
    2022-04-06T18:24:15.793+00:00

    Are you running the command on the AADConnect Server?
    Start-ADSyncSyncCycle -PolicyType Delta

    You dont need to import if so

    0 comments No comments

  2. Gavin O'Connor 1 Reputation point
    2022-04-06T18:33:08.213+00:00

    Yes, and I do not see the Start-ADSyncSyncCycle in the list of commands.

    0 comments No comments

  3. Peter Kayode 506 Reputation points
    2022-04-06T19:37:27.35+00:00

    Please try to Set-ExecutionPolicy RemoteSigned or enable your staging server if you have one and run the command from there.

    0 comments No comments

  4. Gavin O'Connor 1 Reputation point
    2022-04-07T15:22:20.05+00:00

    Thanks for the feedback, I've set that accordingly and run it from the main server. It may be that we have ADSync and not AD Connect, are these two separate services from Microsoft?

    0 comments No comments