Connecting to Lync Online via Powershell

In previous posts I’ve details how to connect to Office 365 administration using PowerShell:

I’ve also detailed how to connect to SharePoint Online using PowerShell:

So now I’ll show you how to connect to Lync Online with PowerShell.

The first thing you should do is follow the initial blog post:

to ensure the Microsoft Online Assistant and the Microsoft Online Services Module for Windows PowerShell are installed.


As with SharePoint Online you are going to need to have PowerShell V3 installed before using Lync Online with PowerShell. If you are doing this on a Windows 8 desktop, then PowerShell V3 is already installed. If not, then you are going to need to download and install Windows Management Framework 3.0 which includes PowerShell 3.0.

Next you’ll to install the Lync Online Management Shell. This is located here:


Accept the license terms and conditions and press the Install button to commence.


Accept the UAC and select Yes to continue.


The installation will check to see what software is installed on your system.




All going well the installation should complete successfully. Select the Close button to complete the process.


Once you have all that installed run the Microsoft Online Services Module for Windows PowerShell as an administrator.


Accept the UAC by pressing Yes.

The next step is to load in the Lync Online cmdlets for use in this session. These cmdlets are called:


So at the PowerShell prompt type:


import-module lynconlineconnector

If you haven’t already logged into your Office 365 tenant as an administrator using PowerShell command you will need to do as detailed in previous posts using the command:



Next, use the following commands to connect to the Lync Online Service.


$session = New-CsOnlineSession -Credential $cred


Import-PSSession $session

You should notice a banner appear across the top of the window as the modules are loaded as shown above.


If everything is correct, PowerShell will simply be returned to a prompt. Now you can execute commands against Lync Online. For example the following will display your Lync tenant information:



Now you can start exploring all the cmdlets that are available for Lync Online which you can find at:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s