Start a new topic

Execute Azure AD Sync update from royal ts through PowerShell?

HI :)


Is it possible through royal ts, to run an manuall Azure AD Connect Sync?


On a specific server Azure AD Connect is installed

On the server, is it possible to run a manuall sync by opening PowerShell, and run the command; start-adsyncsynccycle - policytype delta


Can this be done through Royal TS, so i just dobbelt tap on a PowerShell shortcut, and it runs the command on the server, and if possible (but not a requirement) shows me the status?


It could save me some time, sometimes:)


Thanks in advance

1 Comment

Hi Kim,


this is actually something PowerShell should be able to do using PowerShell Remoting:

https://docs.microsoft.com/en-us/powershell/scripting/learn/remoting/running-remote-commands?view=powershell-7.2


Once configured/setup, you can use Royal TS to trigger this command and execute it on the remote server.


Let me know if this helps.


Regards,
Stefan

Login or Signup to post a comment