RSS

Setting Lync 2010 policies (OCS Group Policy) with PowerShell

20 Dec
 

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

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

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

http://www.unitycomms.com/2010/09/18/lync-2010-and-ocs-2007-r2-group-policy/ 

Advertisements
 
Leave a comment

Posted by on December 20, 2010 in Lync2010

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

 
%d bloggers like this: