Connect To Lync Server Using Remote PowerShell

I had written before about how to connect to an Exchange 2010 server from a Windows PowerShell, read here. The same can be done for Lync Server as well. The commands are pretty much the same as for Exchange 2010. Run the following commands to connect remotely using PowerShell. $s = New-PSSession -ConnectionUri https://lync.exchangemaster.me/OcsPowershell -Credential…

I had written before about how to connect to an Exchange 2010 server from a Windows PowerShell, read here. The same can be done for Lync Server as well.

The commands are pretty much the same as for Exchange 2010.

Run the following commands to connect remotely using PowerShell.

$s = New-PSSession -ConnectionUri https://lync.exchangemaster.me/OcsPowershell -Credential (Get-Credential) Import-PSSession -Session $s

Do replace the ConnectionUri with your url.

Create remote Lync Shell Session

Sure enough, I have all Lync cmdlets available in Windows PowerShell.

Lync command available in PS

One Comment

  1. Rishi Pandit says:

    Great Thanks. This prompts for password. Is there any way that it dosent ask for credentials and makes connection with logged on windows domain account ?

Leave a Reply

Your email address will not be published. Required fields are marked *