Forum Discussion
Find out a server with Azure AD Connect
Hi,
This is one of those scenarios where you could write a script to execute against every server remotely, but that's more effort than is required. You'd also have to navigate which remote administration protocols are even reliably available across all servers, otherwise, you'd still have gaps to manually fill.
Rather than scripting this requirement, you can find out which server is syncing more easily via Azure Portal -> Microsoft Entra ID -> Monitoring -> Sign-in logs, as shown below.
In my example above, I've filtered on the AAD Connect application, and if you look at the section of "Username" boxed in green, this is the name of the computer on which this particular AAD Connect instance is running.
It is possible for there to be multiple usernames and therefore computer names, as AAD Connect can run on more than one host for redundancy purposes (though only one instance of AAD Connect is permitted to run outside of staging mode).
Cheers,
Lain
I think I've done filtering exactly as on your screenshot, but in my case I'm getting users' email addresses as usernames.