Forum Discussion
Jessterf
Jul 30, 2021Copper Contributor
Using the <Start-ADSyncSyncCycle -PolicyType Delta> command remotely.
Hello all, I have an Exchange Hybrid between Office 365 and Exchange 2013 on-prem. For this to work we have the Azure AD Connect application installed on the Exchange server. It syncs every...
- Aug 01, 2021
Jessterf, there are two options.
You can just use Enter-PSSession, without first importing the Exchange session:
Enter-PSSession ExchangeServername Start-ADSyncSyncCycle -PolicyType delta Exit-PSSession
Or you can use Invoke-Command:
Invoke-Command -ScriptBlock { Start-ADSyncSyncCycle -PolicyType delta } -ComputerName ExchangeServername
Make sure WinRM or PSRemoting are configured on your Exchange Server (winrm quickconfig or Enable-PSremoting)
Jessterf
Aug 03, 2021Copper Contributor
Wow that was simple.......
Thank you for that......
Now the world knows I have a big L on my forehead!
RGijsbersRademakers
Aug 03, 2021Iron Contributor
No problem, happy to help. And don't worry, there's definitely no big L on your forehead.