In this article, I will be explaining the client policies in Lync Server 2010 – types of policies, how to create & apply policies to users.
First of all, almost all the settings around Lync client is controlled by the client policy defined on the Lync server. The group policy settings that you were used to in the OCS world is all part of the Lync client policies now.
There are three levels at which a client policy is applied – Global, Site and User level. By default, a global level policy is defined out of the box for Lync 2010. There are no site or user level policies in a default installation of Lync server. Running Get-CsClientPolicy shows you the global policy settings.
I haven’t created any site or user level policies in my lab yet. Running Get-CsUser –identity “user” | fl clientpolicy outputs the client policy applied to the user.
Ohh! That wasn’t the output that you expected, is it? Why is it that the client policy shows blank? Is it because that I don’t have any site/user level policies configured? The answer is no. Even if you don’t have any policies configured, you are always bound by the global policy. The reason why the entry is blank is because the command (Get-CsUser) doesn’t actually output the “effective” policy applied it, in this case the global policy. The command will only output user level policies (if defined). Site or global policies (even when applied) will be shown as blank. Use this script if you want to output the policy applied, even if they are global or site level ones.
If you have a user policy configured, the command will show that though! Let us try. Running New-CsClientPolicy “Policy Name” will create a new user policy. We are not bothered about the policy settings in this article.
Running Get-CsClientPolicy | fl identity shows that we have both global and the new policy in place.
In order to apply this new policy to the user, run Grant-CsClientPolicy –identity “user” –PolicyName “policy name”.
Running Get-CsUser “user” | fl clientpolicy confirms that we have the policy applied.
Run Grant-CsClientPolicy –identity “user” –PolicyName $null if you want to remove the user policy. You will still have a site or global level policy applied.
Hope this gives you an idea to play with the client policies in Lync