Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Running DirSync Remotely using Invoke-Command

$
0
0

Good Morning all,

I am trying to execute a force synchronisation on our DirSync server remotely from my local machine - I am not getting any error but the script just continues running and doesn't force the sync.  If I run the two commands in the scriptblock on the server itself it runs fine.

Please can somebody tell me what is wrong with this line of code

Invoke-Command-ComputerName<DirsyncServerFQDN>-ScriptBlock { Import-Module DirSync; Start-OnlineCoexistenceSync } 

Viewing all articles
Browse latest Browse all 6937

Trending Articles