How it works...

In this recipe, we started by creating a new user services policy and making sure that we enable UCS using the New-CsUserServicesPolicy -Identity ` "TestlabsAllowUnifiedContactStore" -UcsAllowed $True cmdlet, and then we granted it to one of our users with Grant-CsUserServicesPolicy -Identity "pdickson" -PolicyName "TestlabsAllowUnifiedContactStore".

These two steps are also pending in that the systems (Exchange and Skype for Business) trust each other; in addition to the already created OAuth connection, we need to configure a new partner application from both Exchange toward Skype for Business and vice versa. We started by going to the built-in scripts folder in Exchange, cd $exscripts, running the script named "Configure-EnterprisePartnerApplication.ps1", ...

Get Microsoft Exchange Server 2016 PowerShell Cookbook - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.