PS HarriJaakkonen :~/Blog/Posts> cat ./remote-powershell-to-lync-2010-2013.html

Remote powershell to Lync 2010 / 2013 FE

Connet session:

$cred = Get-Credential domainusername
$session = New-PSSession -ConnectionURI “https://LYNCFE.FQDN/OcsPowershell” -Credential $cred
Import-PsSession $session

Disconnect session:

Get-PSSession | Remove-PSSession