Skip to content

Recent Posts

  • Reset passwords for Active Directory Users
  • Finding Exchange Database hidden mailboxes. ​
  • Setting up ADConnect and PTA (Password auth through) servers agents behind proxy
  • Get Report of Active Directory Locked Accounts and Machine they logged in from
  • Checking and Providing Full and SendAs delegate access on O365 Exchange Online

Most Used Categories

  • Microsoft (82)
    • Microsoft Exchange (39)
      • Exchange 2016 (14)
      • Exchange 2019 (14)
    • Active Directory (25)
  • Office 365 (34)
    • Exchange Online (15)
  • Security (15)
  • Microsoft Azure (15)
  • Powershell (19)
Skip to content

Welcome to Mohammed Hamada's Site

The Troubleshooting Guy

Subscribe
  • Consultation
  • Microsoft
    • DFS
    • KMS
    • Office 365
      • Microsoft ADFS
      • Exchange Online
      • Microsoft Teams
      • Skype for Business
    • Microsoft Azure
      • Microsoft Azure Active Directory Sync
      • Licensing
      • ATP
      • WVD
    • ADMT
  • Virtualization
  • VoIP
    • Lync
    • Asterisk
  • PowerShell Corner
  • Security
    • Auditing
    • Pfsense
  • Contact me
  • Certification and Awards
  • Home
  • Microsoft
  • Microsoft Exchange
  • Exchange 2016
  • Skype for Business IM integration with Exchange 2016 OWA–Part 2

Skype for Business IM integration with Exchange 2016 OWA–Part 2

moh10lyJune 12, 2020

This article is a completion of Part 1, Click here to go to Part 1

Configuration Steps – Part 2

7. On Exchange: Enable OWA VD Instant Messaging
8. On Exchange: Enable Messaging on OWA Policy
9. On Exchange: Create Enterprise Application for Skype Pool.
10. On Exchange: Create new SettingOverride for Skype for Business.
11- Generate a new Certificate for Exchange IM
12. Assign the newly imported certificate to IIS Exchange Back End site
13. On Exchange: Restart the WebAppPool
14. Log out and sign back in to OWA to Check
15. Troubleshooting methods

    7- On Exchange Server: Enable OWA VD Instant Messaging

    Part of enabling IM integration between Exchange and SfB is to enable OWA Virtual Directory to allow this. The below cmdlet does the job for you on all your Exchange Servers

    From Exchange, Launch Exchange Management and run the following cmdlet

    Get-OwaVirtualDirectory | Set-OwaVirtualDirectory -InstantMessagingEnabled $true -InstantMessagingType Ocs

    clip_image001[6]_thumb

    8- On Exchange: Enable Messaging on OWA Policy

    Run the following to enable Messaging for Owa Policy

    Get-OwaMailboxPolicy | Set-OwaMailboxPolicy -InstantMessagingEnabled $true -InstantMessagingType Ocs

    clip_image001[6]_thumb[1]

    9- On Exchange: Create Enterprise Application for Skype Pool.

      From Exchange Management shell Run the following cmdlet

      Cd $exscripts

      .\Configure-EnterprisePartnerApplication.ps1 -AuthMetadataUrl “https://sbg-pool01.domain.com/metadata/json/1” -ApplicationType Lync

      The AuthMetadataUrl is going to be your local Skype for Business Pool URL. This URL should work in your Exchange server without any Certificate error. Meaning that the certificate assigned to your Skype for Business pool should already be imported to Exchange Servers to trust this URL.

      image_thumb[14]

        If your previous configuration is correct then you should see the “The Configuration has Succeeded” Message.

          10- On Exchange: Create new SettingOverride for Skype for Business.

          Notes:

          • To configure the same settings on all Exchange 2016 and Exchange 2019 servers in the Active Directory forest, don’t use the Server parameter.

          New-SettingOverride -Name “<UniqueOverrideName>” -Component OwaServer -Section IMSettings -Parameters @(“IMServerName=<Skype server/pool  name>”,”IMCertificateThumbprint=<Certificate Thumbprint>”) -Reason “<DescriptiveReason>” [-Server <ServerName>]

          The Thumbprint you use here will define if whether IM will work or not as this what secures the communication between Exchange and Skype. If you use the wrong certificate your Integration will fail and users wont be able to login to IM through OWA.

          11- Generate a new Certificate for Exchange IM

          IMPORTANT NOTE:

          In order for IM in OWA to work the certificate you will generate must have its common name set as mail.domain.com to match the configuration.

          Using Digicert tool on Exchange Server I will generate the CSR of the new certificate

          Click on Create CSR

          image_thumb[15]

          Choose SSL certificate type and make sure you choose Mail.domain.com as CN

          In the SANs type all of the involved servers (Skype for Business Frontends, Mailbox servers in FQDN and in Hostnames as in the screenshot below). and click on Generate

          image_thumb[16]

          • Go to your CA Server’s CertSRV URL and copy the CSR code there to generate the new certificate.
          • Import the new certificate to the current server, then export it in PFX format and import it to all the Exchange Servers you’re planning to use.

          image_thumb[18]

          • After importing the certificate I will verify that I can see the private key

          image_thumb[19]

          Click on the Details and copy the Thumbprint or from MMC right click the certificate > Properties give it a friendly name e.g. (IM) and then from Exchange Management shell you can copy the Thumbprint directly.

          Get-ExchangeCertificate | select thumbprint,friendlyName

          image_thumb[20]

          Now use the previous script to create the setting Override for OwaServer.

          Things you can change are in bold “Name, IM Servername Value, and the Thumbprint value”.

          New-SettingOverride -Name “IM Override” -Component OwaServer -Section IMSettings -Parameters @(“IMServerName=SBG-Pool01.domain.com“,”IMCertificateThumbprint= 28E4B1BA0F2FCB1535AF199F02A64EFC78367F2D“) -Reason “Configure IM”

          image_thumb[21]

          If you enter the server parameter to use a single server you can change that by using. Note that you must not use FQDN but rather only the server’s hostname.

          Get-SettingOverride | Set-SettingOverride -Server sbg-mx01,sbg-mx02

          image_thumb[22]

          This should generate an event ID 112 on Exchange servers involved in the deployment.

          clip_image001[9]_thumb

            12. Assign the newly imported certificate to IIS Exchange Back End site

            Once the certificate is in the server store, You will be able to easily find in from IIS and bind it to the Exchange Back End site.

            This is the most crucial step to get IM to work in OWA. Don’t worry about breaking up Exchange Sites or Powershell. If you have added Exchange Servers Hostnames and FQDNs in this certificate then you should be good.

            • Now Launch IIS
            • Click on Exchange Back End
            • Select Binding
            • Click on the 444 port and edit
            • Select the newly generated certificate that has the mail.domain.com as CN. (This certificate must also have all Exchange Servers hostnames and FQDNs set as SANs)

            image_thumb[23]

            image_thumb[24]

            Make sure you change the backend cert to the new on all the involved Exchange Servers.

            13. On Exchange: Restart the WebAppPool

            Restart-WebAppPool MSExchangeOWAAppPool

            image_thumb[25]

              14. Log out and sign back in to OWA to Check

              Log out of OWA and back in and check if you are able to Login to IM . It should normally sign you in automatically but in case of an error then you should see it.

              image_thumb[29]

              In case of an error you should see the following.

              image_thumb[27]

              If it works then you should see the presence

              image_thumb[28]

              15. Troubleshooting Methods

              If you follow the above steps correctly then it should work especially when applying the right certificate for your Exchange Back End IIS part however if you face an error then you should do the following steps to troubleshoot the error

              • Set the Eventlog for Instant Messaging on Exchange from Low to High

              Set-EventLogLevel -Identity “sbg-mx01\MSExchange OWA\InstantMessage” -Level High

              image_thumb[30]

              • Look in the following path for errors

              C:\Program Files\Microsoft\Exchange Server\V15\Logging\OWA\InstantMessaging

              • Check the Healthset of the OWA Instant Messaging.

              Get-ServerHealth -HealthSet OWA.Protocol.Dep -Server sbg-mx01 | Format-Table Name, AlertValue –Auto

              image_thumb[31]

              Get-MonitoringItemIdentity -Server sbg-mx01 -Identity OWA.Protocol.Dep | Format-Table Identity,ItemType,Name -Auto

                image_thumb[32]

                Ref

                https://docs.microsoft.com/en-us/exchange/plan-and-deploy/post-installation-tasks/configure-im-integration-with-owa?view=exchserver-2019

                https://docs.microsoft.com/en-us/exchange/high-availability/managed-availability/health-sets?view=exchserver-2019

                Chat, Exchange 2016, Exchange 2019, Skype for Business

                Post navigation

                Previous: Skype for Business IM integration with Exchange 2016 OWA–Part 1
                Next: How to bypass NET::ERR_CERT_INVALID on Chrome

                Related Posts

                Finding Exchange Database hidden mailboxes. ​

                December 24, 2022December 27, 2022 moh10ly

                Checking and Providing Full and SendAs delegate access on O365 Exchange Online

                November 19, 2022January 5, 2023 moh10ly

                Retrieving attachments from Exchange mailbox using python

                January 14, 2022January 14, 2022 moh10ly

                One thought on “Skype for Business IM integration with Exchange 2016 OWA–Part 2”

                1. StatusCue says:
                  July 1, 2021 at 6:03 pm

                  I followed these instructions exactly and it is still not working. I am getting the following errors in the logs:

                  2021-07-01T18:01:20.615Z,71,5,,,,0,DEBUG:InstantMessageNotifier.KeepAlive. User: sip:user@domain.com,
                  2021-07-01T18:01:20.615Z,71,5,,,,0,”DEBUG:InstantMessageOCSProvider.ChangeUserPresenceAfterInactivity. Context: User=user@domain.com, Sip address=sip:user@domain.com, Lyncserver=SFB.domain.local”,
                  2021-07-01T18:01:20.615Z,71,1,,,,0,ERROR:InstantMessageOCSProvider.ChangeUserPresenceAfterInactivity. SelfDataSession not established.,

                  Reply

                Leave a Reply Cancel reply

                Your email address will not be published. Required fields are marked *

                Search for something

                Recent Posts

                • Reset passwords for Active Directory Users
                • Finding Exchange Database hidden mailboxes. ​
                • Setting up ADConnect and PTA (Password auth through) servers agents behind proxy
                • Get Report of Active Directory Locked Accounts and Machine they logged in from
                • Checking and Providing Full and SendAs delegate access on O365 Exchange Online
                • Retrieving attachments from Exchange mailbox using python
                • 550 relay not permitted distribution group contact
                • Script to delete all DPM 2019 recovery points

                Recent Comments

                • B on SoftEther – Fixing connecting to localhost 5555
                • Denise Diaz on Reset passwords for Active Directory Users
                • Les Gray on Replication after tombstone life expired
                • jimmyj on Search and Delete certain Items/Folders from a Mailbox
                • moh10ly on How to Sync Cloud User to On-premises AD ?

                Archives

                • December 2022
                • November 2022
                • January 2022
                • December 2021
                • May 2021
                • March 2021
                • February 2021
                • January 2021
                • December 2020
                • July 2020
                • June 2020
                • May 2020
                • April 2020
                • February 2020
                • January 2020
                • December 2019
                • November 2019

                Archives

                • December 2022
                • November 2022
                • January 2022
                • December 2021
                • May 2021
                • March 2021
                • February 2021
                • January 2021
                • December 2020
                • July 2020
                • June 2020
                • May 2020
                • April 2020
                • February 2020
                • January 2020
                • December 2019
                • November 2019

                Categories

                • Active Directory
                • ADFS
                • ADMT
                • Asterisk
                • ATP
                • Auditing
                • AZURE
                • Cloud
                • Communication
                • CRM Dynamics
                • CrossForest Migration
                • DFS
                • DNS
                • DPM
                • Exchange 2010
                • Exchange 2013
                • Exchange 2016
                • Exchange 2019
                • Exchange Online
                • Google Chat
                • Infrastructure
                • KMS
                • Licensing
                • Linux
                • Lync
                • Mail
                • Microsoft
                • Microsoft AD Group Policy
                • Microsoft ADFS
                • Microsoft Azure
                • Microsoft Azure Active Directory Sync
                • Microsoft Exchange
                • Microsoft Teams
                • Monitoring
                • Networking
                • Office 365
                • Pentest
                • Pfsense
                • PKI
                • Plesk
                • Powershell
                • Python
                • RDS
                • Scripting
                • Security
                • Skype for Business
                • Skype4Business
                • Ubuntu
                • Uncategorized
                • Virtualization
                • VoIP
                • VPN
                • Windows 10
                • Windows Server
                • Windows Server 2019
                • Windows Virtual Desktop
                • WordPress
                • WVD

                Meta

                • Register
                • Log in
                • Entries feed
                • Comments feed
                • WordPress.org
                Copyright All Rights Reserved | Theme: BlockWP by Candid Themes.