0 votes


We would like to run an AD sync (Start-ADSyncSyncCycle -PolicyType Delta) after a new user is created.

Unfortunately, it looks like this script only works for servers that are on the same domain as the Adaxes service is installed. This is an issue because we are using Adaxes to manage multiple domains (MSP environment), and we would like the AD sync to run after creating a user in any of the domains.

What is the recommended way to achieve this?

Thanks, Max

by (40 points)

1 Answer

0 votes
by (257k points)

Hello Max,

Unfortunately, that is not something we can assist you with as it is a networking question not related to Adaxes. Using the command executed in the script is the only way. As such, you just need to find a way to connect to the corresponding server in your script.


Here is how we run delta sync as a PS command in adaxes. We "remotely" run it on any domain controller server. Your adaxes server must have visability to domain contoller of course.

We have it run after user creation and have it as a manual push button action in the web home page for my techs. We had to take it off user modify, because when we would export CSV info nightly to our users it would spam the delta sync and MS would block us.

$dirsyncServer = "srv-001.ourdomain.local" # TODO: modify me

Invoke-Command -ComputerName $dirsyncServer -ErrorAction Stop -ScriptBlock {
    Import-Module "C:\Program Files\Microsoft Azure AD Sync\Bin\ADSync\ADSync.psd1"

    Start-ADSyncSyncCycle -PolicyType Delta

Related questions

0 votes
1 answer

Using this built in function: There is no option to change the domain on the user account, however this is not the domain we use for UPN. However after creating a user, you can change it but trying to avoid going back into the object.

asked Apr 14 by mightycabal (780 points)
0 votes
1 answer

Hello, is there a way to automatically create a user after creating a user in a different domain? Let me explain: We have a Management Domain we own and a new ... be created automatically We got a adaxes service account in both domains. Thanks in advance!

asked May 14, 2019 by Redfruit (100 points)
0 votes
1 answer

In order to add a managed domain does it have to be trusted by the primary domain adaxes is installed an running in? I have set up a domain for testing adaxes and it ... I have set my host file to point the untrusted domain to it's primary Domain Controller.

asked Oct 5, 2022 by mightycabal (780 points)
0 votes
1 answer

Hello, I have Adaxes installed in one forest (domain.com) and we have a 1 way forest trust with another forest (ca.domain.com). I have made the Adaxes service account in ... .com I get the same error. Could someone help me understand what I'm doing wrong?

asked Jun 6, 2016 by drew.tittle (810 points)
0 votes
0 answers

Before Deactivation of an Account on the Webinterface our Help Desk need to change the AD User Description manually. Is it possible to force a manual change before deactivation ?

asked Feb 7, 2020 by lv01 (20 points)
3,164 questions
2,868 answers
505,915 users