Setting Lync 2010 policies (OCS Group Policy) with PowerShell

Important the following information is based on the Release Candidate and could change on RTM. Please check the latest documentation

With the release of Lync Server 2010 (RC) the settings which were deployed using group policy for OCS 2007 R2 are now for the most part sent using in-band provisioning to the client. There are a few setting which are used for Client bootstrapping and therefore still need to be configured in Group Policy.

The majority of group policy settings have been moved to PowerShell commands:

New-CsClientPolicy Create a new client policy either at site or per-user scope
Set-CsClientPolicy Modify an existing client policy
Grant-CsClientPolicy Assign a client policy to a user or group of users
Remove-CsClientPolicy Remove a client policy from a user of group of users
Get-CsClientPolicy Get information on existing client policies

Example

New-CsClientPolicy -Identity SalesPolicy -DisableEmoticons $True          
-DisableEmailComparisonCheck  $True

image

Here we are creating a policy called SalesPolicy with 2 settings to turn off Emoticons and to turn off checking that the Outlook and Lync are running under the same account.

Now to apply this to the Sales department we can use the following:

Get-CsUser -LDAPFilter "Department=Sales" | Grant-CsClientPolicy       
-PolicyName SalesPolicy

Here we are getting all the enabled users in AD who have a department of Sales and applying the policy to them.

You can also apply the Client Policy in Lync Control Panel as well

image

There are a large number of settings for the client policy so I won’t reproduce them here either check the documentation of in the Lync Management Shell use the following command to see all the options:

get-help New-CsClientPolicy -full | more

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: