Looking at the properties of this online session reveals the online server the remote session is established with: If this completes successfully, the variable $SFBOSession now holds a remote Powershell session to the SfBO tenant. In this session, tenant administrator can run Lync cmdlets to manage users, policies and configurations. The function description inside the script describes perfectly what it does:Ĭreates a remote session to Microsoft Lync Online DataCenter. Next, let’s look at what these two cmdlet’s do exactly:Īs we noted above, the New-CsOnlineSession is a function defined in the PowerShell module. When we open this script, we see the following 2 PowerShell function definitions which define the cmdlet’s which allow us to establish the remote PowerShell session, and import the cmdlet’s: The interesting thing is this, unlike many other Microsoft modules, it is script module – meaning the whole module is defined in a PowerShell script that you can read for yourself. The module is usually installed locally here:Ĭ:\Program Files\Common Files\Skype for Business Online\Modules\SkypeOnlineConnector This Import-Module cmdlet makes the SkypeOnlineConnector module available in the local PowerShell session (e.g. This blog entry details what each of these 3 steps are doing behind the scene’s. The –AllowClobber parameter will allow us to redefine any existing cmdlet’s with the same name in our local PowerShell session. Import-PSSession $SFBOSession –AllowClobber Import the remote session into your local PowerShell session $Credential holds the SfBO admin credentials to the tenant $SFBOSession = New-CSOnlineSession -credential $Credential There are 3 things you need to do to connect to your Skype for Business Online tenant with PowerShell using the SfBO PowerShell Module: ActionĮstablish a New Remote SfBO PowerShell Session Knowing a little but about how this module works behind the scene’s can go a long way to understanding any issues that come up. The Skype for Business PowerShell Module used to the connect to the tenant is interesting. ![]() ![]() As Skype for Business Online (SfBO) adoption on Office 365 continues to grow, more organizations are turning to PowerShell to manage the SfBO tenant and users.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |