How to connect lync online through powershell

Vijaya Babu SekarAssociate Ops Manager
Published:
Microsoft has released remote PowerShell capabilities to all commercial Office 365 customers. So you can be controlled via PowerShell and not from the Office 365 admin center

Download Windows PowerShell Module for Lync Online

http://www.microsoft.com/en-us/download/details.aspx?id=39366


How to install Lync Module

Before we would need to install .NET Framework 4.0 or later and Windows Management Framework 3.0

Download Source:

.NET Framework 4.0 or 4.5: http://www.microsoft.com/en-us/download/details.aspx?id=17851

Windows Management Framework 3.0: http://www.microsoft.com/en-us/download/details.aspx?id=34595

Once you have installed .Net Framework and Windows Management Framework 3.0, you can install Lync online powershell Module.

How to configure Powershell

Run Powershell as an administrator, and run the following command:

Set-ExecutionPolicy RemoteSigned

Configure WinRM

Open up a command prompt as an administrator, and then run the following commands

net start winrm

How to connect Lync online powershell

You can open the windows powershell, The way of connecting to Lync Online is similar to connecting to Exchange Online.

$cred = Get-Credential

$CSSession = New-CsOnlineSession -Credential $cred

Import-PSSession $CSSession –AllowClobber

Test the lync online command.

Get-Csonlineuser <Identity Name>

This article could be already published in my own blogs:

http://messagingsolutions.wordpress.com/2014/01/09/how-to-connect-lync-online-through-powershell/
2
2,577 Views

Comments (2)

Hi! It is Simple N useful. Thank u for this, Keep posting.
AmitIT Architect
CERTIFIED EXPERT
Distinguished Expert 2017

Commented:
Simple and easy.

Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.

Get access with a 7-day free trial.
You Belong in the World's Smartest IT Community