Topic Last Modified: 2014-04-07

Modifies the property values of an existing client policy. Among other things, client policies help determine the features of Lync Server that are available to users; for example, you might give some users the right to transfer files while denying this right to other users. This cmdlet was introduced in Lync Server 2010.

Syntax

Set-CsClientPolicy [-Identity <XdsIdentity>] <COMMON PARAMETERS>
Set-CsClientPolicy [-Instance <PSObject>] <COMMON PARAMETERS>
COMMON PARAMETERS: [-AddressBookAvailability <WebSearchAndFileDownload | WebSearchOnly | FileDownloadOnly>] [-AttendantSafeTransfer <$true | $false>] [-AutoDiscoveryRetryInterval <TimeSpan>] [-BlockConversationFromFederatedContacts <$true | $false>] [-CalendarStatePublicationInterval <UInt32>] [-ConferenceIMIdleTimeout <TimeSpan>] [-Confirm [<SwitchParameter>]] [-CustomizedHelpUrl <String>] [-CustomLinkInErrorMessages <String>] [-CustomStateUrl <String>] [-Description <String>] [-DGRefreshInterval <TimeSpan>] [-DisableCalendarPresence <$true | $false>] [-DisableContactCardOrganizationTab <$true | $false>] [-DisableEmailComparisonCheck <$true | $false>] [-DisableEmoticons <$true | $false>] [-DisableFederatedPromptDisplayName <$true | $false>] [-DisableFeedsTab <$true | $false>] [-DisableFreeBusyInfo <$true | $false>] [-DisableHandsetOnLockedMachine <$true | $false>] [-DisableHtmlIm <$true | $false>] [-DisableInkIM <$true | $false>] [-DisableMeetingSubjectAndLocation <$true | $false>] [-DisableOneNote12Integration <$true | $false>] [-DisableOnlineContextualSearch <$true | $false>] [-DisablePhonePresence <$true | $false>] [-DisablePICPromptDisplayName <$true | $false>] [-DisablePoorDeviceWarnings <$true | $false>] [-DisablePoorNetworkWarnings <$true | $false>] [-DisablePresenceNote <$true | $false>] [-DisableRTFIM <$true | $false>] [-DisableSavingIM <$true | $false>] [-DisplayPhoto <NoPhoto | PhotosFromADOnly | AllPhotos>] [-EnableAppearOffline <$true | $false>] [-EnableCallLogAutoArchiving <$true | $false>] [-EnableClientMusicOnHold <$true | $false>] [-EnableConversationWindowTabs <$true | $false>] [-EnableEnterpriseCustomizedHelp <$true | $false>] [-EnableEventLogging <$true | $false>] [-EnableExchangeContactSync <$true | $false>] [-EnableExchangeDelegateSync <$true | $false>] [-EnableFullScreenVideo <$true | $false>] [-EnableHighPerformanceConferencingAppSharing <$true | $false>] [-EnableHighPerformanceP2PAppSharing <$true | $false>] [-EnableHotdesking <$true | $false>] [-EnableIMAutoArchiving <$true | $false>] [-EnableMediaRedirection <$true | $false>] [-EnableNotificationForNewSubscribers <$true | $false>] [-EnableServerConversationHistory <$true | $false>] [-EnableSQMData <$true | $false>] [-EnableTracing <$true | $false>] [-EnableUnencryptedFileTransfer <$true | $false>] [-EnableURL <$true | $false>] [-EnableVOIPCallDefault <$true | $false>] [-ExcludedContactFolders <String>] [-Force <SwitchParameter>] [-HelpEnvironment <String>] [-HotdeskingTimeout <TimeSpan>] [-IMWarning <String>] [-MAPIPollInterval <TimeSpan>] [-MaximumDGsAllowedInContactList <UInt32>] [-MaximumNumberOfContacts <UInt16>] [-MaxPhotoSizeKB <UInt32>] [-MusicOnHoldAudioFile <String>] [-P2PAppSharingEncryption <Supported | Enforced | NotSupported>] [-PlayAbbreviatedDialTone <$true | $false>] [-PolicyEntry <PSListModifier>] [-SearchPrefixFlags <UInt16>] [-ShowManagePrivacyRelationships <$true | $false>] [-ShowRecentContacts <$true | $false>] [-ShowSharepointPhotoEditLink <$true | $false>] [-SPSearchCenterExternalURL <String>] [-SPSearchCenterInternalURL <String>] [-SPSearchExternalURL <String>] [-SPSearchInternalURL <String>] [-TabURL <String>] [-Tenant <Guid>] [-TracingLevel <Off | Light | Full>] [-WebServicePollInterval <TimeSpan>] [-WhatIf [<SwitchParameter>]]

Examples

EXAMPLE 1

The command shown in Example 1 modifies the client policy RedmondClientPolicy. In this example, the WebServicePollInterval property is set to 15 minutes (00 hours: 15 minutes: 00 seconds).

Copy Code
Set-CsClientPolicy -Identity RedmondClientPolicy -WebServicePollInterval "00:15:00"

EXAMPLE 2

In Example 2, three different property values are modified for the client policy RedmondClientPolicy: the properties DisableEmoticons, DisableHtmlIm, and DisableRTFIm are all set to True.

Copy Code
Set-CsClientPolicy -Identity RedmondClientPolicy -DisableEmoticons $True -DisableHtmlIm $True -DisableRTFIm $True

EXAMPLE 3

Example 3 also modifies the properties DisableEmoticons, DisableHtmlIm, and DisableRTFIm. In this example, however, the modifications are made to all the client policies that have been configured at the site scope. To do this, the command first uses the Get-CsClientPolicy cmdlet and the Filter property to return all the client policies where the Identity begins with the characters "site:"; by definition, those are policies configured at the site scope. This filtered collection is then piped to the Set-CsClientPolicy cmdlet, which takes each policy in the collection and modifies the values of DisableEmoticons, DisableHtmlIm, and DisableRTFIm.

Copy Code
Get-CsClientPolicy -Filter "*site:*" | Set-CsClientPolicy -DisableEmoticons $True -DisableHtmlIm $True -DisableRTFIm $True

EXAMPLE 4

In Example 4, all the client policies that allow for photos larger than 10 kilobytes are modified; after the modifications these policies will have a maximum photo size of 10 KB. To carry out this task, the Get-CsClientPolicy cmdlet is first called without any parameters in order to return a collection of all the client policies configured for use in the organization. This collection is then piped to the Where-Object cmdlet, which picks out only those policies where the MaxPhotoSizeKb property is greater than (-gt) 10 KB. The filtered collection is then piped to the Set-CsClientPolicy cmdlet, which sets the value of the MaxPhotoSizeKb property for each policy in the collection to 10 KB.

Copy Code
Get-CsClientPolicy | Where-Object {$_.MaxPhotoSizeKb -gt 10} | Set-CsClientPolicy -MaxPhotoSizeKb 10

Detailed Description

In Lync Server, client policies replace the Group Policy settings used in previous versions of the product. In Microsoft Office Communicator 2007 and Microsoft Office Communicator 2007 R2, Group Policy helped determine what users could do with Communicator and other clients; for example, there were Group Policy settings that determined whether or not users could save a transcript of their instant messaging sessions; whether information from Microsoft Outlook was incorporated into their presence information; and whether or not users could include emoticons or formatted text in instant messages.

As useful as Group Policy can be, however, the technology does have some limitations when applied to Lync Server. For one thing, Group Policy is designed to be applied on a per-domain or per-organizational unit (OU) basis, which makes it difficult to target policies toward a more select group of users (for example, all the users who work in a particular department, or all the users who have a particular job title). For another, Group Policy is only applied to users who log on to the domain and who log on using a computer; Group Policy is not applied to users who access Lync Server over the Internet or who access the system by using a mobile phone. This means that the same user can have a different experience depending on the device he or she uses to log on, and where he or she logs on from.

To help address these inconsistencies, Lync Server uses client policies instead of Group Policy. Client policies are applied each time a user accesses the system, regardless of where the user logs on from and regardless of the type of device the user logs on with. In addition, client policies, like other Lync Server policies, can readily be targeted toward selected groups of users. You can even create a custom policy that gets assigned to a single user.

Client policies can be configured at the global, site, and per-user scopes. The Set-CsClientPolicy cmdlet enables you to modify any (or all) of the client policies that have been configured for use in your organization.

Keep in mind that client policies differ from many other policies in that most of the policy settings do not have default values.

Who can run this cmdlet: By default, members of the following groups are authorized to run the Set-CsClientPolicy cmdlet locally: RTCUniversalServerAdmins. To return a list of all the role-based access control (RBAC) roles this cmdlet has been assigned to (including any custom RBAC roles you have created yourself), run the following command from the Windows PowerShell prompt:

Get-CsAdminRole | Where-Object {$_.Cmdlets –match "Set-CsClientPolicy"}

Parameters

Parameter Required Type Description

AddressBookAvailability

Optional

Microsoft.Rtc.Management.WritableConfig.Policy.Client.AddressBookAvailability

Indicates how users are allowed to access information in the Address Book server (that is, by using the Address Book Web Query service and/or by downloading a copy of the Address Book to their local computer). AddressBookAvailability must be set to one of the following values:

WebSearchAndFileDownload

WebSearchOnly

FileDownloadOnly

AttendantSafeTransfer

Optional

System.Boolean

When set to True, Lync Attendant operates in "safe transfer" mode; this means that transferred calls that do not reach the intended recipient will reappear in the incoming area along with a "Failed Transfer" notice. When set to False, transferred calls that fail to reach the intended recipient will not reappear in the incoming area.

AutoDiscoveryRetryInterval

Optional

System.TimeSpan

After a failed connection attempt, specifies the amount of time Lync waits before again trying to connect to Lync Server. The AutoDiscoveryRetryInterval can be set to value between 1 second and 60 minutes (1 hour), inclusive.

When specifying the AutoDiscoveryRetryInterval you must use the format hours:minutes:seconds. For example, to set the interval to 25 minutes use this syntax:

- AutoDiscoveryRetryInterval 00:25:00

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Time interval to try autodiscovery."

BlockConversationFromFederatedContacts

Optional

System.Boolean

When set to True, contacts from outside your organization will not be allowed to initiate instant message conversations with any user that this policy applies to. However, outside users will be able to participate in conversations as long the internal user initiates that conversation. When set to False, outside contacts are allowed to send unsolicited instant messages to users in your organization.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Block conversation from federated contacts."

CalendarStatePublicationInterval

Optional

System.UInt32

Specifies the amount of time, in seconds, that Lync waits before retrieving calendar information from Microsoft Outlook and adding this data to your presence information.

For example, to set the CalendarStatePublicationInterval to 10 minutes (600 seconds) use this syntax:

- CalendarStatePublicationInterval 600

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Time interval to publish calendar data to presence."

ConferenceIMIdleTimeout

Optional

System.TimeSpan

Indicates the number of minutes that a user can remain in an instant messaging session without either sending or receiving an instant message.

The ConferenceIMIdleTimeout must be less than or equal to 1 hour, and must be specified using the format hours:minutes:seconds. For example, this syntax sets the timeout value to 45 minutes:

-ConferenceIMIdleTimeout 00:45:00

Confirm

Optional

System.Management.Automation.SwitchParameter

Prompts you for confirmation before executing the command.

CustomizedHelpUrl

Optional

System.String

URL for custom Lync help set up by an organization. This help, rather than the default product help, will be displayed any time a user clicks the Help menu in Lync. This parameter has been deprecated for use with Lync Server 2013.

Customized help will not be available unless you also set EnableEnterpriseCustomizedHelp to True.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Help menu."

CustomLinkInErrorMessages

Optional

System.String

URL for the website that can be added to error messages that appear in Lync. If a URL is specified, that URL will appear at the bottom of any error message that occurs in Lync. Users can then click that link and be taken to a custom website that contains additional information, troubleshooting tips, etc.

CustomStateUrl

Optional

System.String

Specifies the location of the XML file used to add custom presence states to Lync. (Lync allows up to four custom presence states in addition to the built-in states such as Available, Busy, and Do Not Disturb.) The location of the XML file should be specified using the HTTPS protocol.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Custom presence states URL."

Description

Optional

System.String

Allows administrators to provide additional information about a policy. For example, the Description might indicate the users that the policy should be assigned to.

DGRefreshInterval

Optional

System.TimeSpan

Indicates the amount of time Lync waits before automatically refreshing the membership list of any distribution group that has been "expanded" in the Contacts list. (Expanding a distribution group means displaying all the members in that group.) DGRefreshInterval can be set to any integer value between 30 seconds and 28,800 seconds (8 hours), inclusive. The default value is 28,800 seconds.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Time interval to refresh the membership of each distribution group."

DisableCalendarPresence

Optional

System.Boolean

When set to True, calendar data taken from Microsoft Outlook will not be included in your presence information. When set to False, calendar data will be included in your presence information. For example, free/busy information will be reported in your contact card; likewise, your status will automatically be set to Busy any time Outlook shows that you are in a meeting.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Disable calendar presence."

DisableContactCardOrganizationTab

Optional

System.Boolean

When set to True, the contact card organization tab is not visible within the Lync user interface. When set to False, the contact card organization tab is available in Lync.

DisableEmailComparisonCheck

Optional

System.Boolean

When set to True, Lync will not attempt to verify that any currently running instance of Microsoft Outlook belongs to the same user running Lync; for example, the software will not verify that both Outlook and Lync are running under Ken Myer’s user account. Instead, it will be assumed that the two applications are running under the same account and, in turn, will include contact and calendar data in Outlook with Lync.

When set to False, Lync will use SMTP addresses to verify that Outlook and Lync are running under the same account. If the SMTP addresses do not match then contact and calendar data in Outlook will not be incorporated into Lync.

DisableEmoticons

Optional

System.Boolean

When set to True, users will not be able to send or receive emoticons in their instant messages; instead they will be see the text equivalent of those emoticons. For example, instead of seeing a graphical "smiley face" users will see the text equivalent:

: )

When set to False users will be able to include emoticons in their instant messages, and to view emoticons in instant messages they receive.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Disable emoticons in instant messages."

DisableFederatedPromptDisplayName

Optional

System.Boolean

When set to True, any notification dialog generated when you are added to a federated user’s Contacts list will use the federated user’s SIP address (for example, sip:kenmyer@fabrikam.com). When set to False, the notification dialog will use the federated user’s display name (for example, Ken Myer) instead.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Prevent showing the display name of federated, non-PIC contacts in the notification dialog."

DisableFeedsTab

Optional

System.Boolean

When set to True, the activity feeds tab will not be displayed in Lync. When set to False, the feeds tab will be available within Lync.

DisableFreeBusyInfo

Optional

System.Boolean

When set to True, free/busy information retrieved from Microsoft Outlook will not be displayed in your contact card. When set to False, free/busy information is displayed in your contact card. For example, your contact card might include a note similar to this:

Calendar: Free until 2:00 PM

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Disable publishing free/busy info."

DisableHandsetOnLockedMachine

Optional

System.Boolean

When set to True, users will not be able to use their Polycom handset if the computer that the handset is connected to is locked. To use the handset, users will first have to unlock the computer.

When set to False, users will be allowed to use their handset even if the computer the handset is connected to is locked.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Configure handset use on locked machine."

DisableHtmlIm

Optional

System.Boolean

When set to True, any HTML text copied from a webpage will be converted to plain text when pasted into an instant message. When set to False, HTML formatting (such as font size and color, drop-down lists and buttons, etc.) will be retained when pasted into an instant message.

Note that, even when set to False, scripts and other potentially malicious items (such as tags that play a sound) will not be copied into an instant message. You can copy and paste buttons and other controls into a message, but any scripts attached to those controls will automatically be removed.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Prevent HTML text in instant messages."

DisableInkIM

Optional

System.Boolean

When set to True, users will not be allowed to receive instant messages containing Tablet PC ink. (Ink is a technology that enables you to insert handwritten notes into a document.) When set to False, users will be allowed to receive messages that contain Table PC ink.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Prevent ink in instant messages."

DisableMeetingSubjectAndLocation

Optional

System.Boolean

When set to False, detailed information about a meeting -- namely, the meeting subject and the location where the meeting is being held -- will be displayed as a tooltip when you view free/busy information in a contact card. When set to True, this detailed information will not be displayed. To completely prevent the display of meeting-related information you should also set DisableCalendarPresence to True.

This setting is equivalent to the Communications Server 2007 R2 Group Policy setting "Disable publishing meeting subject and location information."

DisableOneNote12Integration

Optional

System.Boolean

When set to True, the ability to start Microsoft OneNote from within Lync (and the ability to automatically link instant message sessions and OneNote notes) is disabled. When set to False, the option Take Notes Using One Note is enabled in Lync. In addition, if you locate an instant message transcript in Microsoft Outlook’s Conversation History you can retrieve any OneNote notes associated with that conversation just by clicking the Edit conversation notes button.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Disable OneNote 12 integration."

DisableOnlineContextualSearch

Optional

System.Boolean

When set to True, disables the Find Previous Conversations menu option that appears when you right-click a user in your Contacts list. (This option enables you to search the Microsoft Outlook Conversation History folder for previous instant messaging sessions involving the user in question.) When set to False, the Find Previous Conversations option will be available when you right-click a user in your Contacts list.

Note that this setting only applies to users who are not running Microsoft Outlook in cached mode. That’s because any searches conducted by those users must take place on the Exchange Servers, and administrators might want to limit the network traffic causes by these searches. If you are running Outlook in cached mode, searches take place on a user’s locally-cached copy of his or her Inbox. Cached searches are not affected by this setting.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Disable online contextual search."

DisablePhonePresence

Optional

System.Boolean

When set to True, Lync does not take phone calls into consideration when determining your current status. When set to False, phone calls are taken into consideration when determining your status. For example, any time you are on the phone your status will automatically be set to Busy.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Disable call presence."

DisablePICPromptDisplayName

Optional

System.Boolean

When set to True, any notification dialog box generated when you are added to the Contacts list of a user with an account on a public instant messaging service such as MSN will display that person’s SIP address (for example, sip:kenmyer@litwareinc.com). When set to False, the notification dialog box will use the person’s display name (for example, Ken Myer) instead.

This setting is equivalent to the Communications Server 2007 R2 Group Policy setting "Prevent showing the display name of PIC contacts in the notification dialog."

DisablePoorDeviceWarnings

Optional

System.Boolean

When set to True, Lync will not issue warnings (upon startup, in the Tuning Wizard, in the Conversation window, etc.) if an audio or video device is not working correctly. When set to False, these warnings will be issued.

DisablePoorNetworkWarnings

Optional

System.Boolean

When set to True, Lync will not display warnings about poor network quality.

DisablePresenceNote

Optional

System.Boolean

When set to True, any Out of Office message you configure in Microsoft Outlook will not be displayed as part of your presence information. When set to False, your Out of Office message will be displayed any time a user holds the mouse over your name in their Contacts list.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Disable presence note."

DisableRTFIM

Optional

System.Boolean

When both this setting and the DisableHtmlIm settings are set to True, prevents rich text formatting (for example, different fonts, font sizes, and font colors) from being used in instant messages; instead, all messages sent and received will be converted to plain text format. When set to False, rich text formatting will be allowed in instant messages.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Prevent rich text in instant messages."

DisableSavingIM

Optional

System.Boolean

When set to True, the options for saving an instant message session are removed from the menu bar in the Lync Conversation window. When set to False, these options are available in the Conversation window.

Note that setting this value to True removes the menu options that make it easy for users to save instant message transcripts. However, it does not prevent users from copying all the text in a transcript to the clipboard, pasting that text into another application, and then saving the transcript that way.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Prevent users from saving instant messages."

DisplayPhoto

Optional

Microsoft.Rtc.Management.WritableConfig.Policy.Client.DisplayPhoto

Determines whether or not photos (of both the user and his or her contacts) will be displayed in Lync. Valid settings are:

NoPhoto - Photos are not displayed in Lync.

PhotosFromADOnly - Only photos that have been published in Active Directory Domain Services can be displayed.

AllPhotos - Either Active Directory photos or custom photos can be displayed.

The default value is AllPhotos.

EnableAppearOffline

Optional

System.Boolean

When set to True an additional presence state -- Appear Offline -- is available in Lync. This state makes it appear as though the user is offline; however, he or she will actually be online and available to answer phone calls, respond to instant messages, etc. When set to False, the Appear Offline presence state will not be available in Lync.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Enable the state Appear Offline."

EnableCallLogAutoArchiving

Optional

System.Boolean

When set to True, information about your incoming and outgoing phone calls is automatically saved to the Conversation History folder in Microsoft Outlook. (The actual call itself is not recorded. What is recorded is information such as who took part in the call; the length of the call; and whether this was an incoming or an outgoing call.) When set to False, this information is not saved to Outlook.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Enable/disable automatic archiving of call logs to Outlook mailbox."

EnableClientMusicOnHold

Optional

System.Boolean

When set to True, music will be played any time a caller is placed on hold. When set to False, music will not be played any time a caller is placed on hold. The default value is False.

EnableConversationWindowTabs

Optional

System.Boolean

When set to True, supplemental information related to an instant messaging session will be displayed in a separate browser window. This type of information is available only for custom applications that use the Microsoft Unified Communications Managed API (UCMA). For example, customer service or help desk personnel, can automatically access related information while chatting with someone.

When set to False, supplemental information will not be displayed in a separate browser window. Although the user can still take part in an instant message session, he or she will not have access to any additional information that accompanies the session.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Enable conversation window tabs." This parameter has been deprecated for use with Lync Server 2013.

EnableEnterpriseCustomizedHelp

Optional

System.Boolean

When set to True, users who click the Help menu in Lync will be given custom help set up by the organization. When set to False, users who click the Help menu will be given the default Lync product help.

When you enable customized help you must also specify the URL for the custom help website; this is done using the CustomizedHelpUrl parameter. If this parameter is not specified, or if the URL is not valid, errors will likely occur when users try to schedule or join meetings.

This parameter has been deprecated for use with Lync Server 2013.

EnableEventLogging

Optional

System.Boolean

When set to True, detailed information about Lync will be recorded in the Application event log. When set to False, only major events (such as the failure to connect to Lync Server) are recorded in the event log.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Turn on event logging for Communicator 2007."

EnableExchangeContactSync

Optional

System.Boolean

When set to True (the default value) Lync creates a corresponding personal contact in Microsoft Outlook for each person on a user’s Lync Contacts list.

EnableExchangeDelegateSync

Optional

System.Boolean

When set to True, delegates a user that has configured in Microsoft Exchange will be allowed to schedule meetings for that user.

EnableFullScreenVideo

Optional

System.Boolean

When set to True, this parameter does two things: 1) enables full-screen video (with the correct aspect ratio) for Lync calls; and, 2) disables video preview for Lync calls. When set to False then full-screen video is not available in Lync, but video preview is available.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Enable full screen video and video preview disabled for all OC video calls."

EnableHighPerformanceConferencingAppSharing

Optional

System.Boolean

When set to True, enables high performance application sharing in conferences. This improves the performance of application sharing, but, at the same time, means fewer resources are available to other processes.

EnableHighPerformanceP2PAppSharing

Optional

System.Boolean

When set to True, allows a peer-to-peer application sharing session to exceed the maximum frame rate of 2.5 frames per second. The default value is False.

EnableHotdesking

Optional

System.Boolean

When set to True, enables users to log on to a phone running Lync Phone Edition in a shared workspace by using their Lync Server account. (Among other things, this provides the user access to his or her contacts.) When set to False, users are not allowed to log on to a phone in a shared workspace by using their own credentials.

Note that this setting applies only to common area (shared workspace) accounts and not to user accounts. When set to True and applied to a common area account for a phone in a shared workspace, any user will be able to log on to that phone by using his or her credentials. When set to False, no one will be allowed to log on to that phone.

EnableIMAutoArchiving

Optional

System.Boolean

When set to True, a transcript of every instant message session that a user takes part in will be saved to the Conversation History folder in Microsoft Outlook. When set to False, these transcripts will not be saved automatically. (However, users will have the option to manually save instant message transcripts.)

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Enable/disable automatic archiving of IM conversations to Outlook mailbox."

EnableMediaRedirection

Optional

System.Boolean

When set to True ($True) allows audio and video streams to be separated from other network traffic; in turn, this allows client devices to do encoding and decoding of audio and video locally. Media redirection typically results in lower bandwidth usage, higher server scalability, and a more-optimal user experience compared to similar techniques such as device remoting or codec compression.

EnableNotificationForNewSubscribers

Optional

System.Boolean

When set to True you will receive notification any time you are added to someone else's Contacts list. In addition, the notification dialog box will provide options for you to add that person to your Contacts list, or to block them from viewing your presence information.

EnableSQMData

Optional

System.Boolean

Note: This setting has been deprecated for Lync Server 2013.

The Customer Experience Improvement Program (CEIP) is designed to help Microsoft collect data on the real-world use of Lync. When a user is enrolled in CEIP, then each time the user runs Lync information about what that user does, and how often they do it, will be sent back to Microsoft, stored in a database, and then analyzed to help identify usage trends.

When EnableSQMData is set to True, the user will not automatically be enrolled in the Customer Experience Improvement Program. However, Lync will provide the user with the option to join the program.

When set to False, the user will not be enrolled in the Customer Experience Improvement Program. In addition, Lync will not give users the option of joining the program. The only way for a user to participate in the CEIP program is for EnableSQMData to be set to True and the user to then manually opt-in to the program.

Note that no personally-identifiable information is sent to the CEIP. The CEIP does not keep track of such things as who you send instant messages to, and vice-versa. Instead, the program tracks information such how often people use Lync to transfer files or the average number of contacts that people have on their Contacts Lists.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Specify instrumentation."

EnableTracing

Optional

System.Boolean

When set to True, software tracing will be enabled in Lync; when set to False software tracing will be disabled. Software tracing involves keeping an extremely detailed record of everything that a program does (including tracking API calls). As such tracing is mostly useful to developers and to application support personnel.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Turn on tracing for Communicator 2007."

EnableUnencryptedFileTransfer

Optional

System.Boolean

When set to True, users will be allowed to exchange files with external users whose instant messaging software does not support encrypted file transfers. When set to False, users will only be able to exchange files with external users who have software that supports encrypted file transfers.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Allow transferring unencrypted files."

EnableURL

Optional

System.Boolean

When set to True, hyperlinks embedded in an instant message will be "clickable;" that is, users can click that link and their web browser will open to the specified location. When set to False, hyperlinks appear in instant messages as plain text. To navigate to the location, users will need to copy the link text and paste it into their web browser.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Allow hyperlinks in instant messages."

EnableVOIPCallDefault

Optional

System.Boolean

When set to True, a Lync call will be placed any time a user employs the click-to-call feature.

This policy setting only affects the initial state of the click-to-call feature. If the user modifies the value of the click-to-call setting then the user-selected value will override this policy setting. After a user has modified the click-to-call setting that setting will remain in use and will not be affected by the EnableVOIPCallDefault policy.

ExcludedContactFolders

Optional

System.String

Indicates which Microsoft Outlook contact folders (if any) should not be searched any time Lync searches for new contacts. Multiple folders can be specified by separating the folder names using semicolons; for example: -ExcludedContactFolders "SenderPhotoContacts;OtherContacts".

Force

Optional

System.Management.Automation.SwitchParameter

Suppresses the display of any non-fatal error message that might arise when running the command.

HelpEnvironment

Optional

System.String

When set to "Office 365", the Office 365 client help documentation for Lync Server 2013 will be shown to users rather than the on-premises help shown by default. You can either set HelpEnvironment to "Office 365" or to a null value ($Null). If set to a null value (the default value) then the on-premises help will be shown to users.

HotdeskingTimeout

Optional

System.TimeSpan

Timeout interval for a user logged on to a "hot-desk" phone. (A hot-desk phone is a phone running Lync Phone Edition that is located in a shared workspace, and that users can log on to using their Lync Server account.) The hot-desk timeout specifies the number of minutes that can elapse before a user is automatically logged off of a hot-desk phone. When specifying a hot desking timeout you must use the format hours:minutes:seconds. For example, this syntax sets the hot desking timeout interval to 45 minutes:

-HotdeskingTimeout 00:45:00

Note that this policy setting applies only to common area phones and not to users. The default value is 5 minutes (00:05:00), and the minimum value is 30 seconds (00:00:30).

Identity

Optional

Microsoft.Rtc.Management.Xds.XdsIdentity

Unique identifier assigned to the new policy. To reference the global policy, use this syntax: -Identity global. To reference a site policy, use the prefix "site:" and the name of the site as your Identity; for example: -Identity site:Redmond. To reference a per-user policy, use syntax similar to this: -Identity SalesClientPolicy.

IMWarning

Optional

System.String

When configured, the specified message appears in the Conversation window each time a user takes part in an instant messaging session. For example, if IMWarning is set to "All information is the property of Litwareinc" then that message will appear in the Conversation window each time a user takes part in an instant messaging session.

Your warning message should be limited to 256 characters, and can only contain plain text. You cannot use any formatting (such as boldface or italics) and you cannot clickable URLs within the text.

If set to a null value ($Null) then no message appears in the Conversation window.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Warning text."

Instance

Optional

ClientPolicy

Allows you to pass a reference to an object to the cmdlet rather than set individual parameter values.

MAPIPollInterval

Optional

System.TimeSpan

Important: This parameter has been deprecated for use with Lync Server 2013.

For users of Microsoft Exchange Server 2003, MAPIPollInterval specifies how often Lync retrieves calendar data from the Exchange public folders. MAPIPollInterval can be set to any value between 1 second and 1 hour; inclusive. To configure the MAPI poll interval, use the format hours:minutes:seconds. For example, this command sets the MAPI poll interval to 45 minutes:

-MapiPollInterval 00:45:00

Note that this setting does not apply to users whose email account is on Microsoft Exchange Server 2010 or Microsoft Exchange Server 2007. For those users, calendar retrieval is managed using WebServicePollInterval

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Time interval to load calendar data from MAPI provider."

MaximumDGsAllowedInContactList

Optional

System.UInt32

Indicates the maximum number of distribution groups that a user can configure as a contact. MaximumDGsAllowedInContactList can be set to any integer value between 0 and 64, inclusive. The default value is 10.

MaximumNumberOfContacts

Optional

System.UInt16

Indicates the maximum number of contacts a user is allowed to have. The maximum contacts can be set to any integer value between 0 and 1000, inclusive. When set to 0, that prevents the user from having any contacts.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Maximum allowed number of contacts."

MaxPhotoSizeKB

Optional

System.UInt32

Indicates the maximum size (in kilobytes) for photos displayed in Lync. Setting the MaxPhotoSize to 0 prevents any photos from being displayed in Lync.

The default value is 30 kilobytes.

MusicOnHoldAudioFile

Optional

System.String

Path to the audio file to be played when a caller is placed on hold. If a value is configured for this property then music on hold will be enabled and users will not be allowed to disable the feature. If no value is configured for this property then users can specify their own music on hold file, assuming that EnableClientMusicOnHold is set to True.

P2PAppSharingEncryption

Optional

Microsoft.Rtc.Management.WritableConfig.Policy.Client.P2PAppSharingEncryption

Indicates whether or not desktop and application sharing data exchanged during a peer-to-peer conversation is encrypted. Allowed values are:

Supported. Desktop and application sharing data will be encrypted, if possible.

Enforced. Desktop and application sharing data must be encrypted. If the data cannot be encrypted then desktop and application sharing will not be enabled for the conversation.

NotSupported. Desktop and application sharing data will not be encrypted.

PlayAbbreviatedDialTone

Optional

System.Boolean

When set to True, a 3-second dial tone will be played any time a Lync-compatible handset is taken off the hook. (A Lync-compatible handset looks like a standard telephone, but plugs into a USB port on your computer and is used to make Lync calls rather than "regular" phone calls.) When set to False, a 30-second dial tone is played any time a Lync-compatible handset is taken off the hook.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Play abbreviated dial done."

PolicyEntry

Optional

System.Management.Automation.PSListModifier

Provides a way to add settings not covered by the default parameters. For example, when testing pre-release versions Microsoft Lync Server 2010 it was possible to add a Send Feedback option to Microsoft Lync 2010. That was done by using code similar to this:

$x = New-CsClientPolicyEntry -Name "OnlineFeedbackURL" -Value "http://www.litwareinc.com/feedback"Set-CsClientPolicy -Identity global -PolicyEntry @{Add=$x}

For more details and examples, see the New-CsClientPolicyEntry cmdlet help topic.

SearchPrefixFlags

Optional

System.UInt16

Represents the Address Book attributes that should be used any time a user searches for a new contact. The search prefix flags are constructed as a binary number such as 11101111, in which a 1 indicates that the attribute should be searched and a 0 indicates that the attribute should not be searched. The attributes in the binary value are (from right to left):

Primary email address

Email alias

All email addresses

Company

Display name

First name

Last name

The binary value 1110111 means that all attributes should be searched except attribute 4: Company. To search only display name, first name, and last name you would construct this value:

1110000

After the binary value has been constructed it must then be converted to a decimal value before being assigned to SearchPrefixFlags. To convert a binary number to a decimal number you can use the following Windows PowerShell command:

[Convert]::ToInt32("1110111", 2)

ShowManagePrivacyRelationships

Optional

System.Boolean

When set to True, shows the Relationships option in the Lync Contacts list window. When set to False, hides the Relationships option.

Note that this setting applies only to Lync 2010. Lync 2013 will not show these relationships even if ShowManagePrivacyRelationships has been set to True.

The default value is False.

ShowRecentContacts

Optional

System.Boolean

This parameter has no effect on the client.

ShowSharepointPhotoEditLink

Optional

System.Boolean

If set to True, Lync will include a link that enables users to edit the personal photo stored on their SharePoint MySite. The default value is False, which means that Lync will not include a link to the SharePoint MySite.

SPSearchCenterExternalURL

Optional

System.String

External URL for the SharePoint site used for keyword searches (also known as expert searches). This URL will appear at the bottom of any keyword search results that appear in Lync. If the user clicks this URL, his or her web browser will open up to the SharePoint site, giving the user the opportunity to conduct searches using SharePoint’s search capabilities. (SharePoint offers more search options than Lync does.)

SPSearchCenterExternalURL represents the URL for external users; that is, for users logging on from outside the organization’s firewall. The parameter SPSearchCenterInternalURL is for users who log on from inside the firewall.

SPSearchCenterInternalURL

Optional

System.String

Internal URL for the SharePoint site used for keyword searches (also known as expert searches). This URL will appear at the bottom of any keyword search results that appear in Lync. If the user clicks this URL, his or her web browser will open up to the SharePoint site, giving the user the opportunity to conduct searches using SharePoint’s search capabilities. (SharePoint offers more search options than Lync does.)

SPSearchCenterInternalURL represents the URL for internal users; that is, for users logging on from inside the organization’s firewall. The parameter SPSearchCenterExternalURL is for users who log on from outside the firewall.

SPSearchExternalURL

Optional

System.String

External URL for the SharePoint site used for keyword searches (also known as expert searches). Lync will use the SharePoint site located at this URL any time an external user (that is, a user who has accessed the system from outside the organization’s firewall) conducts a keyword search.

SPSearchInternalURL

Optional

System.String

Internal URL for the SharePoint site used for keyword searches (also known as expert searches). Lync will use the SharePoint site located at this URL any time an internal user (that is, a user who has logged on from inside the organization’s firewall) conducts a keyword search.

TabURL

Optional

System.String

Specifies the location of the XML file used to create custom tabs located at the bottom of the Lync Contacts list window. Custom tabs provide access to webpages (for example, help desk webpages) from within Lync. This parameter has been deprecated for use with Lync Server 2013.

This setting is equivalent to the Office Communications Server 2007 R2 Group Policy setting "Tab URL."

Tenant

Optional

System.Guid

Globally unique identifier (GUID) of the Office 365 tenant account that owns the client policy being modified. For example:

–Tenant "38aad667-af54-4397-aaa7-e94c79ec2308"

You can return the tenant ID for each of your tenants by running this command:

Get-CsTenant | Select-Object DisplayName, TenantID

If you are using a remote session of Windows PowerShell and are connected only to Lync Online you do not have to include the Tenant parameter. Instead, the tenant ID will automatically be filled in for you based on your connection information. The Tenant parameter is primarily for use in a hybrid deployment.

TracingLevel

Optional

Microsoft.Rtc.Management.WritableConfig.Policy.Client.TracingLevel

Enables Administrators to manage event tracing and logging in Lync 2013. Allowed values are:

* Off – Tracing is disabled and the user cannot change this setting.

* Light – Minimal tracing is performed, and the user cannot change this setting.

* Full – Verbose tracing is performed, and the user cannot change this setting.

By default TracingLevel is set to Light.

WebServicePollInterval

Optional

System.TimeSpan

For users of Microsoft Exchange Server 2007 and later versions of the product, WebServicePollInterval specifies how often Lync retrieves calendar data from Microsoft Exchange Server Web Services. WebServicePollInterval can be set to any value between 1 second and 1 hour; inclusive. To configure the Web Service poll interval, use the format hours:minutes:seconds. For example, this command sets the Web Service poll interval to 45 minutes:

-WebServicePollInterval 00:45:00

Note that this setting does not apply to users whose email account is on Exchange 2003. For those users, calendar retrieval is managed using MAPIPollInterval.

This setting is equivalent to the Communications Server 2007 R2 Group Policy setting "Time interval to load calendar data from Web service provider."

WhatIf

Optional

System.Management.Automation.SwitchParameter

Describes what would happen if you executed the command without actually executing the command.

Input Types

Microsoft.Rtc.Management.WritableConfig.Policy.Client.ClientPolicy object. The Set-CsClientPolicy cmdlet accepts pipelined instances of the client policy object.

Return Types

The Set-CsClientPolicy cmdlet does not return a value or object. Instead, the cmdlet configures instances of the Microsoft.Rtc.Management.WritableConfig.Policy.Client.ClientPolicy object.

See Also