If you use AAD Connect to synchronize on-premises Active Directory with Azure AD, you may find it more convenient to trigger an AAD sync from a remote domain-joined computer or server. I frequently do this when I make a change to an on-prem AD object from my Windows 10 workstation or Exchange server. Remote PowerShell to the rescue!
Copy the following Sync-AAD.ps1 script to your Windows path (I put it in C:Windows) on the computer or server where you want to run it.
$AADComputer = ((Get-ADUser -Filter ‘Name -like “AAD_*”‘ -Properties Description).Description).split(” “).trim(“.”) + “.” + (Get-WmiObject win32_computersystem).Domain
$session = New-PSSession