Using Lync Online cmdlets

In the previous recipe, we outlined the steps required to establish a remote PowerShell session with Lync Online. We have less than 50 cmdlets, as shown in the result of the Get-Command -Module command in the following screenshot:

Using Lync Online cmdlets

Some of them are specific for Lync Online, such as the following:

  • Get-CsAudioConferencingProvider
  • Get-CsOnlineUser
  • Get-CsTenant
  • Get-CsTenantFederationConfiguration
  • Get-CsTenantHybridConfiguration
  • Get-CsTenantLicensingConfiguration
  • Get-CsTenantPublicProvider
  • New-CsEdgeAllowAllKnownDomains
  • New-CsEdgeAllowList
  • New-CsEdgeDomainPattern
  • Set-CsTenantFederationConfiguration
  • Set-CsTenantHybridConfiguration
  • Set-CsTenantPublicProvider
  • Update-CsTenantMeetingUrl

All the remaining cmdlets can be used either with Lync Online or with the on-premises version of Lync Server 2013. We will see the use of some of the previously mentioned cmdlets.

How to do it...

  1. The Get-CsTenant cmdlet will list Lync Online tenants configured for use in our organization. The output of the command includes information such as the preferred language, registrar pool, domains, and assigned plan.
  2. The Get-CsTenantHybridConfiguration cmdlet gathers information about the hybrid configuration of Lync (we will talk about this scenario, starting with the Introducing Lync in a hybrid scenario section).
  3. Management of the federation capability for Lync Online (the feature that enables Instant Messaging and Presence information exchange with users of other domains) is based on the allowed domain and blocked domain lists, as we can see in the organization and external communications screen of LAC, shown in the following screenshot:
    How to do it...
  4. There are similar ways to manage federation from the Lync Online PowerShell, but it required to put together different statements as follows:
    • We can use an accept all domains excluding the ones in the exceptions list approach. To do this, we have put the New-CsEdgeAllowAllKnownDomains cmdlet inside a variable. Then, we can use the Set-CsTenantFederationConfiguration cmdlet to allow all the domains (except the ones in the block list) for one of our domains on a tenant. We can use the example on TechNet (http://technet.microsoft.com/en-us/library/jj994088.aspx) and integrate it with Get-CsTenant.
    • If we prefer, we can use a block all domains but permit the ones in the allow list approach. It is required to define a domain name (pattern) for every domain to allow the New-CsEdgeDomainPattern cmdlet, and each one of them will be saved in a variable. Then, the New-CsEdgeAllowList cmdlet will create a list of allowed domains from the variables. Finally, the Set-CsTenantFederationConfiguration cmdlet will be used. The domain we will work on will be (again) cc3b6a4e-3b6b-4ad4-90be-6faa45d05642. The example on Technet (http://technet.microsoft.com/en-us/library/jj994023.aspx) will be used:
      $x = New-CsEdgeDomainPattern -Domain "contoso.com"
      $y = New-CsEdgeDomainPattern -Domain "fabrikam.com"
      $newAllowList = New-CsEdgeAllowList -AllowedDomain $x,$y
      Set-CsTenantFederationConfiguration -Tenant " cc3b6a4e-3b6b-4ad4-90be-6faa45d05642" -AllowedDomains $newAllowList
      
  5. The Get-CsOnlineUser cmdlet provides information about users enabled on Office 365. The result will show both users synced with Active Directory and users homed in the cloud. The command supports filters to limit the output; for example, the Get-CsOnlineUser -identity fab will gather information about the user that has alias = fab. This is an account synced from the on-premises Directory Services, so the value of the DirSyncEnabled parameter will be True.

See also

All the cmdlets of the Remote PowerShell for Lync Online are listed in the TechNet post Lync Online cmdlets at http://technet.microsoft.com/en-us/library/jj994021.aspx. This is the main source of details on the single statement.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.217.198