Share via

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 Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

4 answers

Sort by: Most helpful
  1. 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?

    Was this answer helpful?

    0 comments No comments

  2. 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.

    Was this answer helpful?

    0 comments No comments

  3. 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.

    Was this answer helpful?

    0 comments No comments

  4. Andy David - MVP 160.3K Reputation points MVP Volunteer Moderator
    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

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.