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:
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.
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.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).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
.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
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
.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.
18.118.2.240