Showing posts with label Lync 2013. Show all posts
Showing posts with label Lync 2013. Show all posts

Friday, May 8, 2020

[LY15] Check user's response group



Get-CsRgsAgentGroup | Where {$_.AgentsByUri -Like “*risual.user*” | FT Name  

Thursday, February 8, 2018

[LY15] Remove user reference from Director



USE [rtc]
GO

DELETE FROM [dbo].[UserPolicy]
      WHERE ResourceId = '244'
GO




USE [rtc]
GO

DELETE FROM [dbo].[ResourceDirectory]
      WHERE ResourceId = '244'
GO





USE [rtc]
GO

DELETE FROM [dbo].[Resource]
      WHERE ResourceId = '244'
GO



Sunday, September 24, 2017

[LY13] Export address book to file



abserver -dumpfile "C:\LyncShare\n-WebServices-n\ABFiles\00000000-0000-0000-0000-000000000000\00000000-0
000-0000-0000-000000000000\F-0ef3.lsabs" c:\ABS-dump26Jun.txt

Sunday, July 23, 2017

[LY13] Capture AutoD records




reg.exe query HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Lync\user001@domain.com.br\Autodiscovery
reg.exe query HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Lync\user001@domain.com.br\LyncAutodiscovery

Tuesday, February 28, 2017

[LY2013] Find the share of a pool




#Quickly find and open the share folder for the Lync pool

Invoke-Item(Get-CsService -FileStore | Select-Object -ExpandProperty UncPath)

Saturday, September 5, 2015

[LY2013] Add Skype/MS contact



rick(gmail.com)@msn.com

[LY2013] Lync Cmdlets



Install-CSAdServerSchema -Confirm:$false -Verbose -Report "C:\Users\Administrator.OREGON\AppData\Local\Temp\2\Install-CSAdServerSchema-[2014_09_06][19_01_36].html"

Enable-CSAdForest  -Verbose -Confirm:$false -Report "C:\Users\Administrator.OREGON\AppData\Local\Temp\2\Enable-CSAdForest-[2014_09_06][19_09_04].html"

Enable-CSAdDomain -Verbose -Confirm:$false -Report "C:\Users\Administrator.OREGON\AppData\Local\Temp\2\Enable-CSAdDomain-[2014_09_06][19_09_19].html"






> Assign Certificate

Set-CSCertificate -Type Default,WebServicesInternal,WebServicesExternal -Thumbprint 06C891A7A56A2F0FD93B1C27A1A4EE1F6ED0B1C8 -Confirm:$false -Report "C:\Users\Administrator.OREGON\AppData\Local\Temp\2\Set-CSCertificate-[2014_09_07][11_07_06].html"
The following certificate was assigned for the type "Default":
Default: 06C891A7A56A2F0FD93B1C27A1A4EE1F6ED0B1C8 pool01.oregon.usa 09/06/2016 CN=oregonCA, DC=oregon, DC=usa 15A92708000000000003
The following certificate was assigned for the type "WebServicesInternal":
WebServicesInternal: 06C891A7A56A2F0FD93B1C27A1A4EE1F6ED0B1C8 pool01.oregon.usa 09/06/2016 CN=oregonCA, DC=oregon, DC=usa 15A92708000000000003
The following certificate was assigned for the type "WebServicesExternal":
WebServicesExternal: 06C891A7A56A2F0FD93B1C27A1A4EE1F6ED0B1C8 pool01.oregon.usa 09/06/2016 CN=oregonCA, DC=oregon, DC=usa 15A92708000000000003




Request-CSCertificate -New -Type OAuthTokenIssuer -CA "dc01.oregon.usa\oregonCA" -Country US -State "Oregon" -FriendlyName "Lync Default Cert Oath" -KeySize 2048 -PrivateKeyExportable $True -Organization "Oregon" -OU "IT" -AllSipDomain -Verbose -Report "C:\Users\Administrator.OREGON\AppData\Local\Temp\2\Request-CSCertificate-[2014_09_07][11_07_48].html"
Creating new log file "C:\Users\Administrator.OREGON\AppData\Local\Temp\2\Request-CSCertificate-575da714-5864-40ba-9486-169e6f0f375a.xml".
Create a certificate request based on Lync Server configuration for this computer.
Issued thumbprint "0906D699447EFCFA864D4EC51786097E2CA87592" for use "OAuthTokenIssuer" by "dc01.oregon.usa\oregonCA".
No changes were made to the Central Management Store.
Creating new log file "C:\Users\Administrator.OREGON\AppData\Local\Temp\2\Request-CSCertificate-[2014_09_07][11_07_48].html".
"Request-CSCertificate" processing has completed successfully.
Detailed results can be found at "C:\Users\Administrator.OREGON\AppData\Local\Temp\2\Request-CSCertificate-[2014_09_07][11_07_48].html".



[LY2013] Address Book troubleshooting



Atualizar informações do domínio nas bases do SQL

Update-CsUserDatabase

Atualiza as informações do Address Book, baixando no FileStore\1-WebServices-1\ABFiles

Update-CsAddressBook


Forçar download do Address Book


Force the search by contact without address book
Get-csclientpolicy | Set-csclientpolicy -AddressBookAvailability WebSearch


Após atualização do Lync, rodar comando:

Install-CsDatabase -ConfiguredDatabases -SqlServerFqdn "lync.alabama.usa" -v

[LY2013] Lync 2013 Server Software Prerequisites



Windows 2008 R2

All Server Roles require:
 Microsoft .NET Framework 4.5 (http://go.microsoft.com/fwlink/p/?LinkId=268529)
 Windows PowerShell 3.0 (http://www.microsoft.com/en-us/download/details.aspx?id=34595)
 Windows Identity Foundation 3.0 (http://go.microsoft.com/fwlink/p/?linkId=204657) (KB974405)


Additional on all Standard and Enterprise Frontend Server:
 .NET 3.5 (activated by default)
 SilverLight (optional)
 prerequisite KB2646886 for IIS 7.5 (http://support.microsoft.com/kb/2646886/en-us)
  FIX: Heap corruption occurs when a module calls the InsertEntityBody method in IIS 7.5
  NOTE: Install this Hotfix only after IIS Components are installed!
Import-Module ServerManager
Add-WindowsFeature RSAT-ADDS, Web-Server, Web-Static-Content, Web-Default-Doc, Web-Http-Errors, Web-Asp-Net, Web-Net-Ext, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Http-Logging, Web-Log-Libraries, Web-Request-Monitor, Web-Http-Tracing, Web-Basic-Auth, Web-Windows-Auth, Web-Client-Auth, Web-Filtering, Web-Stat-Compression, Web-Dyn-Compression, NET-HTTP-Activation, Web-Asp-Net, Web-Mgmt-Tools, Web-Scripting-Tools, Web-Mgmt-Compat, Telnet-Client, BITS, Desktop-Experience

Director:

 prerequisite KB2646886 for IIS 7.5 (http://support.microsoft.com/kb/2646886/en-us) FIX: Heap corruption occurs when a module calls the InsertEntityBody method in IIS 7.5
NOTE: Install this Hotfix only after IIS Components are installed!

Add-WindowsFeature RSAT-ADDS, Web-Server, Web-Static-Content, Web-Default-Doc, Web-Http-Errors, Web-Asp-Net, Web-Net-Ext, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Http-Logging, Web-Log-Libraries, Web-Request-Monitor, Web-Http-Tracing, Web-Basic-Auth, Web-Windows-Auth, Web-Client-Auth, Web-Filtering, Web-Stat-Compression, NET-HTTP-Activation, Web-Asp-Net, Web-Mgmt-Tools, Web-Scripting-Tools, Web-Mgmt-Compat, Telnet-Client, BITS


Mediation:
No more additional prerequisites

Edge:
No more additional prerequisites

pChat:
We need Microsoft Message Queuing (Server and Services)
Add-WindowsFeature MSMQ-Services


Note:
Remember, with Windows Server 2008 R2 you need to import the Server Manager module first.
Import-Module ServerManager




Windows 2012 and Windows 2012 R2
All Server Roles require:
 Windows PowerShell 3.0 (is installed by default)
 Microsoft .NET Framework 4.5 (http://go.microsoft.com/fwlink/p/?LinkId=268529) Additional Step's after Installation: Select WCF Activation if it isn’t already selected. Then select HTTP Activation, or include in PowerShell
 Windows Identity Foundation 3.5 (activate via Server Manager)
or add via PowerShell 
Add-WindowsFeature Windows-Identity-Foundation

Additional on all Standard and Enterprise Frontend Server:
 .NET 3.5 (must be manually activated)
 SilverLight (optional)

Add-WindowsFeature RSAT-ADDS, Web-Server, Web-Static-Content, Web-Default-Doc, Web-Http-Errors, Web-Asp-Net, Web-Net-Ext, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Http-Logging, Web-Log-Libraries, Web-Request-Monitor, Web-Http-Tracing, Web-Basic-Auth, Web-Windows-Auth, Web-Client-Auth, Web-Filtering, Web-Stat-Compression, Web-Dyn-Compression, NET-WCF-HTTP-Activation45, Web-Asp-Net45, Web-Mgmt-Tools, Web-Scripting-Tools, Web-Mgmt-Compat, Telnet-Client, BITS, Desktop-Experience, Windows-Identity-Foundation -Source D:\sources\sxs



Director:
Add-WindowsFeature RSAT-ADDS, Web-Server, Web-Static-Content, Web-Default-Doc, Web-Http-Errors, Web-Asp-Net, Web-Net-Ext, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Http-Logging, Web-Log-Libraries, Web-Request-Monitor, Web-Http-Tracing, Web-Basic-Auth, Web-Windows-Auth, Web-Client-Auth, Web-Filtering, Web-Stat-Compression, NET-WCF-HTTP-Activation45, Web-Asp-Net45, Web-Mgmt-Tools, Web-Scripting-Tools, Web-Mgmt-Compat, Telnet-Client, BITS, Windows-Identity-Foundation -Source D:\sources\sxs


Mediation:
No more additional prerequisites


Edge:
No more additional prerequisites

pChat:
Add-WindowsFeature MSMQ-Services
---------------------------------------------------------------

Additional Information:
Do not install any Winsock Layered Service Providers (LSP) software, on any Front End Servers or stand-alone Mediation Servers. Installing this software could cause poor media traffic performance.
A LSP Software for example it:
Microsoft Internet Security and Acceleration (ISA) Server client software 


Lync 2013 Survival Branch Server

In this section regarding the SBS (the equivalent "self-build" SBA:), I assume Windows Server 2012/ 2012 R2 is used:
As written, all server role have requirements in common, therefore to realize the SBA has its Registrar, Lync Frontend Service, the same overall requirements are valid too:
All Server Roles require:
 Windows PowerShell 3.0 (is installed by default)
 Microsoft .NET Framework 4.5 (http://go.microsoft.com/fwlink/p/?LinkId=268529) Additional Step's after Installation: Select WCF Activation if it isn’t already selected. Then select HTTP Activation, or include in PowerShell
Add-WindowsFeature NET-WCF-HTTP-Activation45, Web-Asp-Net45
 Windows Identity Foundation 3.5 (activate via Server Manager)
or add via PowerShell 
Add-WindowsFeature Windows-Identity-Foundation