question

GavinOConnor-2791 avatar image
0 Votes"
GavinOConnor-2791 asked GavinOConnor-2791 answered

ADSyncSyncCycle CMDLET Missing

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

azure-ad-connect
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.

AndyDavid avatar image
0 Votes"
AndyDavid answered AndyDavid edited

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

You dont need to import if so

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.

GavinOConnor-2791 avatar image
0 Votes"
GavinOConnor-2791 answered

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

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.

pkaycr avatar image
0 Votes"
pkaycr answered

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

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.

GavinOConnor-2791 avatar image
0 Votes"
GavinOConnor-2791 answered

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?

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.