The term ‘Start-ADSyncSyncCycle’ is not recognized error

In this PowerShell azure tutorial, we will discuss how to fix the error, The term ‘Start-ADSyncSyncCycle’ is not recognized error. This error I got while running the PowerShell command to Manually Force Sync Azure AD Connect Using PowerShell ISE.

The term ‘Start-ADSyncSyncCycle’ is not recognized error

Recently, I was trying to run the PowerShell cmdlet to manually force the sync Azure AD to connect. Then I got the error “The term ‘Start-ADSyncSyncCycle’ is not recognized”.

I was executing the below PowerShell cmdlet

PS C:\WINDOWS\system32> Start-ADSyncSyncCycle -PolicyType Delta

You can see it here, as below

The term 'Start-ADSyncSyncCycle' is not recognized

The exact error message is

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) [], CommandNotFoun
      dException
    • FullyQualifiedErrorId : CommandNotFoundException

Solution

Now to fix this issue, You need to follow the below steps

Step-1: Open the Windows PowerShell or PowerShell ISE with run as administrator mode

The term 'Start-ADSyncSyncCycle' is not recognized as the name of a cmdlet

Step-2: Run the below PowerShell cmdlet to set the execution policy 

PS C:\WINDOWS\system32> Set-ExecutionPolicy RemoteSigned
The term 'Start-ADSyncSyncCycle' is not recognized as the name of a cmdlet, function

Step-3: Now the next step is to import the ADSync module using the below PowerShell cmdlet.

Import-Module -Name "C:\Program Files\Microsoft Azure AD Sync\Bin\ADSync" -Verbose
The term 'Start-ADSyncSyncCycle' is not recognized error

Check out the Path for ADSync installation. By default, the path is C:\Program Files\Microsoft Azure AD Sync\Bin\ADSync. But cross-check the path in your machine before running the cmdlet.

Step-4: Now try running the below PowerShell cmdlet again,

PS C:\WINDOWS\system32> Start-ADSyncSyncCycle -PolicyType Delta
The term 'Start-ADSyncSyncCycle' is not recognized as the name of a
cmdlet, function, script file, or operable program.

Now, you should able to execute this PowerShell cmdlet sucessfully with out any issue.

You may like to follow the below tutorials

Conclusion

Here, in this article, we discussed the fix or the solution for the error The term ‘Start-ADSyncSyncCycle’ is not recognized which I got while trying to execute the PowerShell cmdlet to Manually Force Sync Azure AD Connect. Hope this helps you to fix your issue !!!

Leave a Comment