Goal / Scope
Provide steps to connect to Skype for Business Online using PowerShell and import the session to manage Skype for Business Online and Microsoft Teams.
There are several ways and methods for connecting to Microsoft Online Services and it can get confusing. This is the method used for managing and maintaining Skype for Business and Microsoft Teams.
Methodology / Process Steps
Download the “Skype for Business Online, PowerShell Module” from Microsoft for the Skype Online Connector (can be found here)
- Install the module by simply running the downloaded Executable. This will provide the command “New-CsOnlineSession” needed below.
- Set the credentials
|$UserCredential = Get-Credential|
- Import the required module for the connection (NOTE: This is only possible once the Skype for Business Online, PowerShell Module is installed)
|Import-Module “C:\Program Files\Common Files\Skype for Business Online\Modules\SkypeOnlineConnec
- Create the online session and set it to a variable
|$sfboSession = New-CsOnlineSession -Credential $UserCredential|
- Import the remote session of the connection created above
Known Issues / Troubleshooting
This section is for the issues that have well defined and tested solutions.
Problem: | PowerShell Complains about the specified module not being loaded because no valid module file was found in any module directory.
Solution: | Verify the “Skype for Business Online, PowerShell Module” was properly downloaded and installed.