On Exchange Server 2013
Get the Autodiscover URI using this comand in Exchange Management Shell:
Get-ClientAccessServer | fl fqdn, AutodiscoverServiceInternalURI
You can set the Autodiscover URI using this command:
Get-ClientAccessServer | Set-ClientAccessServer -AutoDiscoverServiceInternalUri "https://autodiscover.chahla.local/autodiscover/autodiscover.xml"
In my Case: https://autodiscover.chahla.local/autodiscover/autodiscover.xml
![001 001](http://lh5.ggpht.com/-tiYLsdAcYdE/UPElJ_50e0I/AAAAAAAAAIw/tTFt1bQPauI/001_thumb%25255B4%25255D.jpg?imgmax=800)
On Lync Server 2013
Get the Site name and the Pool FQDN using this comand in Lync Management Shell:
Get-Cspool | where-object {$_.services –like “*UserServer*”} | fl site, fqdn
In my Case: Site is Jeddah and Pool FQDN is Pool01.chahla.local
Now we need to access Autodiscover and the Pool from both servers (Exchange & Lync) thru a browser and make sure that we don’t have any certificate issues or warnings.
From Exchange Server: type the URL then enter your credentials.
it should look like this, notice that there is no certificate warnings.
- The same for pool01.
From Lync Server: type the URL then enter your credentials.
Back to Exchange Server:
Configuring an On-Premises Partner Application for Microsoft Lync Server 2013
Type the below commands in Exchange Management Shell:
cd $exscripts
.\Configure-EnterprisePartnerApplication.ps1 -AuthMetadataUrl "https://pool01.chahla.local/metadata/json/1" -ApplicationType Lync
make sure you put your pool fqdn.
Source: http://technet.microsoft.com/en-us/library/jj204975.aspx
then do an iisreset
Determine the Certificate Thumbprint
Get-ExchangeCertificate | where-object {$_.services -like "*iis*" } | fl subject, issuer, services, thumbprint
![008 008](http://lh6.ggpht.com/-RcgXIW4mi-s/UPEle8TpxVI/AAAAAAAAAKg/sFDf6MHQ63M/008_thumb%25255B1%25255D.jpg?imgmax=800)
My Certificate thumbprint 7D40811E599C1CF8A63770D96D17EC31FB395BE9
Now assign the pool name and the certificate thumbprint to OWAVirtualDirectory
Get-OwaVirtualDirectory -ShowBackEndVirtualDirectories -server ex2013-01.chahla.local | where { $_.WebSite -eq `Exchange Back End' } | Set-OwaVirtualDirectory -InstantMessagingEnabled $true -InstantMessagingType OCS -InstantMessagingCertificateThumbprint 7D40811E599C1CF8A63770D96D17EC31FB395BE9 -InstantMessagingServerName pool01.chahla.local
Get-OwaMailboxPolicy | Set-OwaMailboxPolicy -InstantMessagingEnabled $true -InstantMessagingType OCS
Source: http://technet.microsoft.com/en-us/library/jj688055.aspx
Now we need to edit web.config file of OWA
Open
C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\Owa
Edit web.config with Notepad
Add the below two keys in the <appSettings> part
<add key="IMCertificateThumbprint" value="7D40811E599C1CF8A63770D96D17EC31FB395BE9" />
<add key="IMServerName" value="pool01.chahla.local" />
substitute your thumbprint and pool fqdn.
Then recycle the IIS pool, using this command
C:\Windows\System32\Inetsrv\Appcmd.exe recycle apppool /apppool.name:"MSExchangeOWAAppPool"
Finished from Exchange Server part, now on Lync Server.
We need to create a Partner Application, Trusted Application Pool and a Trusted Application.
Partner Application:
New-CsPartnerApplication -identity Exchange -ApplicationTrustLevel Full -MetadataUrl https://autodiscover.chahla.local/autodiscover/metadata/json/1
Trusted Application Pool:
New-CsTrustedApplicationPool -Identity ex2013-01.chahla.local -Registrar pool01.chahla.local -Site Jeddah -RequiresReplication $False
Source: http://technet.microsoft.com/en-us/library/jj688055.aspx
Trusted Application:
New-CsTrustedApplication -ApplicationId OutlookWebAccess -TrustedApplicationPoolFqdn ex2013-01.chahla.local -Port 5199
Then, Enable-Cstopology for the settings to be published.
And we are finished, now we can test it by signing in to OWA and then Sign in to IM from inside OWA.
- Sign in to IM.
- Looks nice.
Test IM from another user
1 New message pops up, accept and start the chat session.
Done.
Get the Autodiscover URI using this comand in Exchange Management Shell:
Get-ClientAccessServer | fl fqdn, AutodiscoverServiceInternalURI
You can set the Autodiscover URI using this command:
Get-ClientAccessServer | Set-ClientAccessServer -AutoDiscoverServiceInternalUri "https://autodiscover.chahla.local/autodiscover/autodiscover.xml"
In my Case: https://autodiscover.chahla.local/autodiscover/autodiscover.xml
![001 001](http://lh5.ggpht.com/-tiYLsdAcYdE/UPElJ_50e0I/AAAAAAAAAIw/tTFt1bQPauI/001_thumb%25255B4%25255D.jpg?imgmax=800)
On Lync Server 2013
Get the Site name and the Pool FQDN using this comand in Lync Management Shell:
Get-Cspool | where-object {$_.services –like “*UserServer*”} | fl site, fqdn
In my Case: Site is Jeddah and Pool FQDN is Pool01.chahla.local
![002 002](http://lh5.ggpht.com/-9t0pdS3iefM/UPElMR3GowI/AAAAAAAAAJA/5Hk3wkNWz5o/002_thumb%25255B2%25255D.jpg?imgmax=800)
Now we need to access Autodiscover and the Pool from both servers (Exchange & Lync) thru a browser and make sure that we don’t have any certificate issues or warnings.
From Exchange Server: type the URL then enter your credentials.
![003 003](http://lh3.ggpht.com/-ZQcCLNrIiCA/UPElPl6LUJI/AAAAAAAAAJQ/F0gf-Dyx-94/003_thumb%25255B1%25255D.jpg?imgmax=800)
it should look like this, notice that there is no certificate warnings.
![004 004](http://lh5.ggpht.com/-7xusP6JMCIo/UPElSiN5BNI/AAAAAAAAAJg/6_KZOtgPNU8/004_thumb%25255B1%25255D.jpg?imgmax=800)
- The same for pool01.
![005 005](http://lh4.ggpht.com/-MKHhxN-sfjM/UPElVXYhuHI/AAAAAAAAAJw/JdvPqza_SWE/005_thumb%25255B1%25255D.jpg?imgmax=800)
From Lync Server: type the URL then enter your credentials.
![003 003](http://lh3.ggpht.com/-ZQcCLNrIiCA/UPElPl6LUJI/AAAAAAAAAJQ/F0gf-Dyx-94/003_thumb%25255B1%25255D.jpg?imgmax=800)
![004 004](http://lh5.ggpht.com/-7xusP6JMCIo/UPElSiN5BNI/AAAAAAAAAJg/6_KZOtgPNU8/004_thumb%25255B1%25255D.jpg?imgmax=800)
![005 005](http://lh4.ggpht.com/-MKHhxN-sfjM/UPElVXYhuHI/AAAAAAAAAJw/JdvPqza_SWE/005_thumb%25255B1%25255D.jpg?imgmax=800)
Back to Exchange Server:
Configuring an On-Premises Partner Application for Microsoft Lync Server 2013
Type the below commands in Exchange Management Shell:
cd $exscripts
.\Configure-EnterprisePartnerApplication.ps1 -AuthMetadataUrl "https://pool01.chahla.local/metadata/json/1" -ApplicationType Lync
make sure you put your pool fqdn.
Source: http://technet.microsoft.com/en-us/library/jj204975.aspx
![006 006](http://lh3.ggpht.com/-qW4uk6YQKhY/UPElZFJllYI/AAAAAAAAAKA/A_q6c-OLhh4/006_thumb%25255B1%25255D.jpg?imgmax=800)
then do an iisreset
![007 007](http://lh5.ggpht.com/-9_o6s9mGTQY/UPElbzTErrI/AAAAAAAAAKQ/qEtszKyl9Zo/007_thumb%25255B1%25255D.jpg?imgmax=800)
Determine the Certificate Thumbprint
Get-ExchangeCertificate | where-object {$_.services -like "*iis*" } | fl subject, issuer, services, thumbprint
![008 008](http://lh6.ggpht.com/-RcgXIW4mi-s/UPEle8TpxVI/AAAAAAAAAKg/sFDf6MHQ63M/008_thumb%25255B1%25255D.jpg?imgmax=800)
My Certificate thumbprint 7D40811E599C1CF8A63770D96D17EC31FB395BE9
![009 009](http://lh3.ggpht.com/-qgYLKAtKqkA/UPElhv6DmjI/AAAAAAAAAKw/2GmDQUGKnyg/009_thumb%25255B1%25255D.jpg?imgmax=800)
Now assign the pool name and the certificate thumbprint to OWAVirtualDirectory
Get-OwaVirtualDirectory -ShowBackEndVirtualDirectories -server ex2013-01.chahla.local | where { $_.WebSite -eq `Exchange Back End' } | Set-OwaVirtualDirectory -InstantMessagingEnabled $true -InstantMessagingType OCS -InstantMessagingCertificateThumbprint 7D40811E599C1CF8A63770D96D17EC31FB395BE9 -InstantMessagingServerName pool01.chahla.local
![010 010](http://lh3.ggpht.com/-QCI0XVTZYyo/UPElkeOM0cI/AAAAAAAAALA/KQ_UZokXFJc/010_thumb%25255B1%25255D.jpg?imgmax=800)
Get-OwaMailboxPolicy | Set-OwaMailboxPolicy -InstantMessagingEnabled $true -InstantMessagingType OCS
Source: http://technet.microsoft.com/en-us/library/jj688055.aspx
Now we need to edit web.config file of OWA
Open
C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\Owa
Edit web.config with Notepad
Add the below two keys in the <appSettings> part
<add key="IMCertificateThumbprint" value="7D40811E599C1CF8A63770D96D17EC31FB395BE9" />
<add key="IMServerName" value="pool01.chahla.local" />
![011 011](http://lh6.ggpht.com/-CLbkoJYT93I/UPElnAfYrmI/AAAAAAAAALQ/OBltj3w_QXA/011_thumb%25255B1%25255D.jpg?imgmax=800)
substitute your thumbprint and pool fqdn.
Then recycle the IIS pool, using this command
C:\Windows\System32\Inetsrv\Appcmd.exe recycle apppool /apppool.name:"MSExchangeOWAAppPool"
![012 012](http://lh5.ggpht.com/-u4kZ7yWJUUw/UPElppL5wGI/AAAAAAAAALg/UcrhAcxaglQ/012_thumb%25255B1%25255D.jpg?imgmax=800)
Finished from Exchange Server part, now on Lync Server.
We need to create a Partner Application, Trusted Application Pool and a Trusted Application.
Partner Application:
New-CsPartnerApplication -identity Exchange -ApplicationTrustLevel Full -MetadataUrl https://autodiscover.chahla.local/autodiscover/metadata/json/1
![013 013](http://lh4.ggpht.com/-uxT6LrrhMZI/UPElsuTk9_I/AAAAAAAAALw/2QMNg-8FDpA/013_thumb%25255B1%25255D.jpg?imgmax=800)
Trusted Application Pool:
New-CsTrustedApplicationPool -Identity ex2013-01.chahla.local -Registrar pool01.chahla.local -Site Jeddah -RequiresReplication $False
Source: http://technet.microsoft.com/en-us/library/jj688055.aspx
![014 014](http://lh3.ggpht.com/-3J7M4O6WrRA/UPElwbJghxI/AAAAAAAAAMA/wSEOtI2SJLU/014_thumb%25255B1%25255D.jpg?imgmax=800)
Trusted Application:
New-CsTrustedApplication -ApplicationId OutlookWebAccess -TrustedApplicationPoolFqdn ex2013-01.chahla.local -Port 5199
![015 015](http://lh3.ggpht.com/-X0EMiI8GfSE/UPElzQhwqhI/AAAAAAAAAMQ/O052y9U_TyY/015_thumb%25255B1%25255D.jpg?imgmax=800)
Then, Enable-Cstopology for the settings to be published.
![016 016](http://lh3.ggpht.com/-qr0d5Nalc_Q/UPEl16NaCvI/AAAAAAAAAMg/AsMRkyAGwsI/016_thumb%25255B1%25255D.jpg?imgmax=800)
And we are finished, now we can test it by signing in to OWA and then Sign in to IM from inside OWA.
![017 017](http://lh6.ggpht.com/-DPV6Xhscswk/UPEl4QpXnZI/AAAAAAAAAMw/Ygq5X-0xw3o/017_thumb%25255B1%25255D.jpg?imgmax=800)
- Sign in to IM.
![018 018](http://lh4.ggpht.com/-JdhnIYRkBps/UPEl7DcWy2I/AAAAAAAAANA/MUxV6klfNLk/018_thumb%25255B1%25255D.jpg?imgmax=800)
![019 019](http://lh5.ggpht.com/-lA6Hoz0s_qU/UPEl-V6WMAI/AAAAAAAAANQ/fGUGsUBFKXs/019_thumb%25255B1%25255D.jpg?imgmax=800)
- Looks nice.
![020 020](http://lh4.ggpht.com/-XudDteZ7K1A/UPEmA2JbAcI/AAAAAAAAANg/QT8k3Vwl2vQ/020_thumb%25255B1%25255D.jpg?imgmax=800)
Test IM from another user
![021 021](http://lh6.ggpht.com/-sdTk848wnh4/UPEmESv73YI/AAAAAAAAANw/658Oti1MTtc/021_thumb%25255B3%25255D.jpg?imgmax=800)
![022 022](http://lh5.ggpht.com/-fPDr8ir13qo/UPEmHguFFJI/AAAAAAAAAOA/SrsTl9Dman0/022_thumb%25255B2%25255D.jpg?imgmax=800)
1 New message pops up, accept and start the chat session.
![023 023](http://lh6.ggpht.com/-Cj5CSdNFHNw/UPEmLD7wyTI/AAAAAAAAAOQ/c4DPnvDZWBg/023_thumb%25255B1%25255D.jpg?imgmax=800)
![024 024](http://lh6.ggpht.com/-6WP9Lpj1HAw/UPEmN0Y5YtI/AAAAAAAAAOg/iSDLoFddmT8/024_thumb%25255B3%25255D.jpg?imgmax=800)
![025 025](http://lh3.ggpht.com/-6Wd57KsfkEc/UPEmQWLEgJI/AAAAAAAAAOw/4X0bLaACVVk/025_thumb%25255B3%25255D.jpg?imgmax=800)
![026 026](http://lh5.ggpht.com/-USto-b3W2A4/UPEmTCzTgxI/AAAAAAAAAPA/Q6sCFECabXE/026_thumb%25255B2%25255D.jpg?imgmax=800)
Done.
No comments:
Post a Comment