Thursday, July 21, 2011

Completely Disable IM Archiving and Outlook Conversation History in Lync

Compliance in the enterprise is a funny thing.  Some companies take the approach that they have to save everything forever.  Some take the opposite approach that they only keep limited backups, control what the user can save, and purge everything else.  This post will describe how to control and prohibit users from saving IM’s to Outlook or their local folder structure.

There are three major ways to archive/save IM conversations for Lync:

  1. Install and configure the Lync Archiving Role
  2. Allow client side “Conversation History” through the Outlook client
  3. Allow users to save an IM to a file

We will not go into #1 since if you do not install or configure the Archiving role, then IM’s will not be centrally saved within a SQL database.

Disable Conversation History in Outlook

By default when Lync is installed, Lync integrates with Exchange/Outlook and creates a Conversation History folder to save all conversations including IMs, audio, video, and web conferences.  Also by default, all conversation logs are set to save in this folder.

Lync Dis Arch - Conv History

These options can be set in the client by the user:

Lync Dis Arch - client option - markup

The administrator can disable these settings from user control by setting a Lync client policy which gets applied to the client through in-band provisioning.  There are two parameters that can be set here, one for IM conversations and one for call logs.  The following command disables the automatic saving of both options:

Set-CsClientPolicy –Identity Test –EnableIMAutoArchiving $false –EnableCallLogAutoArchiving $false

Lync Dis Arch - cmd disable autoIM

Note that I am setting a specific policy which is already granted to my users.  You could easily set these parameters on the Global Client Policy to apply to everyone.

After applying the policy, the options are now unchecked and disabled from user control:

Lync Dis Arch - client option disabled - markup

With these policies configured, a user still has the option of saving IM conversation manually.

Disable the Ability to Save IM Conversations Manually

When in an IM conversation, a user has the option to save an IM to Outlook or as a separate file:

Lync Dis Arch - Client Save As - markup

The administrator can disable this option by setting a Lync client policy which gets applied to the client through in-band provisioning. The following command disables the ability to manually save IM conversations:

Set-CsClientPolicy –Identity Test –DisableSavingIM $true

Lync Dis Arch - cmd disable saving IM

Note that I am setting a specific policy which is already granted to my users. You could easily set these parameters on the Global Client Policy to apply to everyone.

Now the option is no longer available within the IM conversation:

Lync Dis Arch - Client Save As Disabled

This post described how to disable IM conversation logging and saving.  Hope this helps.

Wednesday, July 13, 2011

Kerberos Web Authentication for Lync Web Services

I know that everyone runs the Lync Best Practices Analyzer (BPA) on a regular basis…right?  After running the BPA, you might see the following warning:

Pool fully qualified domain name (FQDN) “fqdn” is not found as a http service principal name (SPN) on any user or computer.  Kerberos web authentication is not configured..

Lync Kerb - BPA warn

The warning pops up due to the fact that Lync uses NetworkService to run the Web Services and NetworkService cannot have SPNs assigned to it (this is a change from how OCS handled it).

I am not going to address the “why use kerberos authentication?” because there is already a great article written by Jens Trier Rasmussen.  I suggest reading it before proceeding.

The rest of this post will describe the process of enabling Kerberos authentication for the Lync Web Services.

1) Create a Kerberos account

Pre-req: member of Domain Admins and computer running Lync Management Shell (LMS)

From the LMS, run:  New-CsKerberosAccount –UserAccount “Domain\UserAccount” –ContainerDN “CN=Users,DC=DomainName,DC=DomainExtenstion”

My command:  New-CsKerberosAccount –UserAccount “Homelab\LyncKerbAcct” –ContainerDN “OU=UC Objects,DC=homelab,DC=local”

Lync Kerb - create acct

Note that the –UserAccount parameter is used even though we are creating a computer account with this command.

Lync Kerb - create acct aduc - markup

2) Assign the Kerberos account to a site

Pre-req: member of RTCUniversalServerAdmins and computer running Lync Management Shell (LMS)

To use the Kerberos account, you must assign it to a site.  While you can create multiple Kerberos accounts for your environment, you can only assign one account per Lync site.

From the LMS run: New-CsKerberosAccountAssignment –UserAccount “Domain\UserAccount” –Identity “site:SiteName”

My command: New-CsKerberosAccountAssignment –UserAccount “Homelab\LyncKerbAcct” –Identity “site:Datacenter”

Then run Enable-CsTopology

Lync Kerb - assign site

3) Set Kerberos account password and Synchronize to IIS

Pre-req: member of RTCUniversalServerAdmins and computer running Lync Management Shell (LMS)

From the LMS run: Set-CsKerberosAccountPassword –UserAccount “Domain\UserAccount”

My command: Set-CsKerberosAccountPassword –UserAccount “Homelab\LyncKerbAcct”

Lync Kerb - set password

If any servers are added to the topology in the site (like Front-ends and Directors) you will need to synchronize the Kerberos account password to IIS of the new server.

From LMS run: Set-CsKerberosAccountPassword –FromComputer SourceComputer –ToComputer DestinationComputer

My command: Set-CsKerberosAccountPassword –FromComputer lablyncfe01.homelab.local –ToComputer lablyncfe02.homelab.local

Lync Kerb - set assign

4) Testing to make sure Kerberos is working properly

To test for full functional readiness of Kerberos within a site, the following command can be run to create a report:

From LMS run: Test-CsKerberosAccountAssignment –Identity “site:SiteName” –Report “C:\reportpath\reportname.htm” –Verbose

My command: Test-CsKerberosAccountAssignment –Identity “site:Datacenter” –Report “C:\Temp\KerbTest.htm”

Lync Kerb - test command

Report generated:

Lync Kerb - test report

Hope this helps!

Friday, July 8, 2011

Lync Topology Validator

I wish that the Lync Resource Kit tools were part of the core Lync install, but it is not.  You can download it HERE. There is a great tool part of the resource kit called Topology Validator.  This tool uses synthetic transactions and combines a multitude of testing cmdlets into a single tool that can test the health of the following:

  • Service installation check
  • Register
  • Peer to peer IM
  • Group IM
  • Presence
  • Peer to peer A/V
  • A/V conference
  • Peer to peer PSTN call
  • PSTN outbound call
  • Address book
  • Location policy
  • Location information service configuration
  • Dial-in conferencing
  • Address book web query
  • Client authentication
  • Federation
  • Phone bootstrap

To run the Topology Validator, first install the Lync Resource Kit tools downloaded above on your Lync server.  The Topology Validator is a command-line only tool and can be run by launching command prompt and running:

C:\Program Files\Microsoft Lync Server 2010\Reskit\TopologyValidator\> TopologyValidator.exe

You can also run TopologyValidator.exe /? to see other options.

Lync - TPV - command

When the tool starts, it will ask what FQDN to test against.  I will choose my Front-End pool: pool.twhlab.com

Lync - TPV - menu

The tool will then ask for sip addresses and credentials of two users.  If you have outbound PSTN connectivity, you can also enter that information:

Lync - TPV - creds

After all information is entered, all test will be run and reported on the screen.  You can easily see what tests passed and failed.

Lync - TPV - command - results

The Topology Validator also stores all output files and an HTML report in the \%temp%\TopologyValidator folder:

Lync - TPV - file location - markup

Opening the HTML report gives all results and details behind each test:

 Lync - TPV - report

You can expand each test, see the commands used and also the logs of the test run. 

This is a great troubleshooting and validation tool to use in your environment. I highly encourage it!

Thursday, July 7, 2011

Exchange 2007 SP3 Update Rollup 4 Available

An update for Exchange 2007 SP3 has just released and can be downloaded at: Exchange 2007 SP3 Update Rollup 4 Download

This brings the build number to: 8.3.192.1

  • For a description of all the included fixes, see KB 2509911

If you have a clustered environment, please see this article: Applying Exchange 2007 Update Rollups to Clustered Mailbox Servers

If you are running Forefront, it is important to disable Forefront protection during the update:

  • Before running patch: fscutility /disable
  • After running patch: fscutility /enable

Also remember to disable or remove all third party software during the upgrade (like antivirus, backup agents, disclaimers, etc.)

        NOTE: Update Rollup 5 for Exchange 2007 SP3 is scheduled for August 2011.  More info from the Exchange Team

        Wednesday, June 22, 2011

        Exchange 2010 SP1 Update Rollup 4 Available

        UPDATE (7/28/2011) – Update Rollup 4 has been rereleased.  Please click here for the new info and update.

        UPDATE (7/13/2011) – The Exchange Team has pulled Update Rollup 4 from the Downloads site due to a issue with potential data loss during public folder data copying.  All the details can be read HERE.  The fix will be included in Update Rollup 5 scheduled for August.

        An update for Exchange 2010 SP1 has just released and can be downloaded at: Exchange 2010 SP1 Update Rollup 4 Download. This will take you Exchange version up to 14.1.323.1

        For a description of all the included fixes, see KB 2509910

        For those of you running DAGs, please see the following article: Applying Updates to Exchange 2010 SP1

        If you are running Forefront, it is important to disable Forefront protection during the update:

        • Before running patch: fscutility /disable
        • After running patch: fscutility /enable

        NOTE: Update Rollup 5 for Exchange 2010 SP1 is currently scheduled for August 2011

        Sunday, June 12, 2011

        OCS R2 June 2011 Updates Released (CU9)

        The latest round of OCS R2 updates are available for download.

        Here are the components that were updated for this round of updates:

        Server Updates (6907.233) - KB 968802

        Note: As always, the easiest way to make sure your server is up to date across all components is to use the Cumulative Server Update Installer (ServerUpdateInstaller.exe package)

        Client Updates

        Group Chat

        Wednesday, June 8, 2011

        Four New Lync Add-ins Just Released

        Showing the power of client extensibility, Microsoft has released some example Lync client add-ins that are quite useful.  The post will discuss the following add-ins:

        • Tabbed Conversations
        • Conversation Translator
        • Information Dashboard
        • Conversation Analyzer

        Tabbed Conversations

        Add-in Download

        Getting Started Guide

        After installing the Tabbed Conversations add-in, nothing really happens.  You have to actually start the application from the Start Menu and it will show in the system tray.

        lync add-in - tabbed- start

        lync add-in - tabbed- tray - markup

        Now whenever you start a new conversation or someone starts one with you, it will automatically open in a tabbed interface.  One feature that I really like is that you can detach a tabbed conversation and convert it back to the native Lync view:

        lync add-in - tabbed- tabbed - markup

        Conversation Translator

        Add-in Download

        Getting Started Guide

        After installing the add-in, you will notice a new menu pick when you have a conversation open:

        lync add-in - translator - menu

        Once the Conversation Translator menu is selected, it will extend the Lync client and display the translation area.  First you can use the settings page to define your language and the recipient’s language:

        lync add-in - translator - settings

        Once the settings are configured, the add-in will allow you to type in your native language and send the IM in the recipient’s language:

        lync add-in - translator - IM

        This is a great add-in for multi-national organizations!

        Information Dashboard

        Add-in Download

        Getting Started Guide

        The Information Dashboard enables you to gather information about the recipient before contacting them.  Information returned about the recipient includes:

        • Date/Time
        • Working hours
        • Weather forecast
        • News feeds

        After installing the add-in, you will notice a new menu pick when you have a conversation open:

        lync add-in - infodash - menu

        Once the Information Dashboard menu is selected, it will extend the Lync client and display a search box to enter the recipient’s location:

        lync add-in - infodash - client

        Once the location is selected, you will get information returned about the location selected:

        lync add-in - infodash - location

        Conversation Analyzer

        Add-in Download

        Getting Started Guide

        The Conversation Analyzer is an application that will review your conversation history and provide “efficiency” scores.

        The Conversation Analyzer runs as a separate application and will have to be launched from the Start Menu:

        lync add-in - conv ana - start

        This will launch the application.  The next step is to click the Configure button:

        lync add-in - conv ana - app - markup

        This will open up a dialog which you will need to enter your domain credentials and the URL to your Exchange Web Services (EWS).  EWS is used to gather your Conversation History:

        lync add-in - conv ana - config - markup

        Next you will navigate back to the main application and click the Load button.  This will initiate the connection to Exchange and start analyzing the data:

        lync add-in - conv ana - load

        Once this is complete, you Conversation History will be shown along with the scores calculated:

        lync add-in - conv ana - score

        Note sure how useful this add-in is on a daily basis, but does demonstrate some of the things that can be accomplished using the data.

        Enjoy the new add-ins!