In this article, I’ll show you how to connect to Skype For Business Online using PowerShell.
Like always, Before you start, please install the Windows PowerShell Module for Office 365.
Download Module
Once you have the PowerShell module for Office 365 please download the PowerShell module for Skype For Business Online.
https://www.microsoft.com/en-us/download/details.aspx?id=39366
Install-Module
Next, Install the module.
Connect
Now that we have all the required software and modules Installed, Use the code below to connect to the Skype For Business service.
Run PowerShell ISE as Administrator Set-ExecutionPolicy unrestricted Import-Module SkypeOnlineConnector $cred = Get-Credential $session = New-CsOnlineSession -Credential $cred -Verbose Import-PSSession -Session $session
Learn
To view all available cmdlets type:
Get-Command -Module tmp_mmdx3k5r.cuh
To view all remote session type:
Get-PSSession
To close your PS session use:
Remove-PSSession 1
Conclusion
I have to say that the process is not as easy as Microsoft would like it to be and many admins.
Once you install all the modules the connection process is smooth and trouble-free.
Learning how to use the module is essential because many features can only be enabled and managed using the Shell