How to connect lync online through powershell


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

How to install Lync Module

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

Download Source:

.NET Framework 4.0 or 4.5

Windows Management Framework 3.0

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

Image

Image

Image

Image

$CSSession = New-CsOnlineSession -Credential $cred

Image

Import-PSSession $CSSession –AllowClobber

Image

Image

Test the lync online command.

Image

Image

Advertisements
This entry was posted in Lync, Office 365 and tagged , . Bookmark the permalink.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s