728x90

use rtcdyn

 

-- 모임 참석자 리스트 쿼리
select FE.Fqdn, P.ConfId, P.UserAtHost, RC.ProvisionTime, P.JoinTime, RC.ExpiryTime from Participant P with(nolock)
Join ParticipantSignalingSession PS with(nolock) ON PS.ConfId = P.ConfId and P.PartId = PS.PartId
Join [rtc].[dbo].[Conference] RC with(nolock) ON RC.ConfId = P.ConfId
Join FrontEnd FE with(nolock) ON FE.FrontEndId = PS.FrontEndId
Order by RC.ProvisionTime, P.ConfId, FE.Fqdn

-- 모임 F/E서버 및 모임방ID별 참석자 수
select FE.Fqdn, P.ConfId, Count(*) as Join_Cnt, RC.ExpiryTime from Participant P with(nolock)
Join ParticipantSignalingSession PS with(nolock) ON PS.ConfId = P.ConfId and P.PartId = PS.PartId
Join [rtc].[dbo].[Conference] RC with(nolock) ON RC.ConfId = P.ConfId
Join FrontEnd FE with(nolock) ON FE.FrontEndId = PS.FrontEndId
Group By FE.Fqdn, P.ConfId, RC.ExpiryTime

 


select
--ActiveConference
[ActiveConference].[ConfId]
,[Title]
,[LastEnterprisePartLeaveTime]
,'|' as '|'
--ActiveMCU
,[LastActivityTime] MCULastActivityTime
,'|' as '|'
--Conference
,[ProvisionTime]
,[ExpiryTime]
,[LastUpdateTime]
,[LastActivateTime]
,'|' as '|'
--Participant
,[UserAtHost]
,[EnterpriseId]
,[Privilege]
,[JoinTime]
FROM [rtcdyn].[dbo].[ActiveConference]
left outer join [rtcdyn].[dbo].[Participant]
on [Participant].ConfId = [ActiveConference].ConfId
left outer join [rtcdyn].[dbo].[ActiveMcu]
on ActiveMcu.ConfId = ActiveConference.ConfId
and UserAtHost not like 'CAS%'
and MediaId = 4
left outer join [rtc].[dbo].[Conference]
on Conference.ConfId = ActiveConference.ConfId

--where ActiveConference.ConfId in (select ConfId from [rtcdyn].[dbo].[Participant] where UserAtHost like '%dgardiner.test%') --Name of the application/OwnerURI scheduling the conference

 

728x90
728x90

Just like Lync 2010, some Lync 2013 client settings are held in the registry. This post goes over the registry keys

Keys Under Lync:

HKCU:\Software\Microsoft\Office\15.0\Lync

 

Key
AddToFirewallExceptionList
AllowOverridingDeviceAtJoinTime
AutoOpenMainWindowWhenStartup
AutoSignInWhenUserSessionStarts
AwayThreshold
CurrentUILanguage
DSBkgndMode
DuplicatePrimaryMonitorPresentingSetting
EnableBHOSmartTags
EnableEventLogging
EnableTTY
EndPointLocation
FirstRun
FtReceiveFolder
GCWithRosterTabbedFrameWidth
GroupContactsBy
IdleThreshold
IMGCNoExtensionTabbedFrameWidth
IMLargeExtensionTabbedFrameWidth
IMMediumExtensionTabbedFrameWidth
IsConversationStatePreservationEnabled
IsOneLineTabList
JoinAudioConferenceFrom
LastDialedNumber
LyncEntryName
LyncName
MinimizeWindowToNotificationArea
MTTA
MTTF
MTTT
MusicOnHoldAudioFile
MusicOnHoldDisabled
NotSendingSignInTracing
OCTelephonyMode
playSoundFeedback
SavePassword
ServerSipUri
ServerUsername
ShowContactFriendlyName
ShowContactStatus
ShowEmoticons
ShowFavoriteContacts
ShowPhoto
ShowUserConsentForAutomaticSendTracing
SortContactsByName
suspendSoundWhenBusy
suspendSoundWhenConversationWindowInForeground
suspendSoundWhenDND
TracingLevel
TwoLineView
WindowMax
WindowRect

 

Keys Held under the account:

<img style="display: inline; border: 0px;" title="image" src="https://149371380.v2.pressablecdn.com/wp-content/uploads/2012/11/image_thumb9.png" alt="image" width="640" height="332" border="0" /> #

HKCU:\Software\Microsoft\Office\15.0\Lync\user.name@domain.com

Key
Conversations
Dismissed DelegatorList
Dismissed RgsList
Last DelegatorList
Last RgsList
Outstanding DelegatorList
Outstanding RgsList
PreferredGeometry
TrustModelData

 

HKCU:\Software\Microsoft\Office\15.0\Lync\

user.name@domain.com\Autodiscovery

Key
cacheVersion
ExternalAvailabilityServerUrl
ExternalBasicEcpUrl
ExternalEcpPhotoUrl
ExternalEcpUrl
ExternalEwsUrl
ExternalOofServerUrl
ExternalPhotoUrl
ExternalServerVersion
ExternalTimeToLive
InternalAvailabilityServerUrl
InternalBasicEcpUrl
InternalEcpUrl
InternalEwsUrl
InternalOofServerUrl
InternalPhotoUrl
InternalServerVersion
InternalTimeToLive
TimeStamp
WasSoapBased
WasWsSecurityBased

 

HKCU:\Software\Microsoft\Office\15.0\Lync\

user.name@domain.com\BuddyListOldNotifications

Holds SIP Uris

 

HKCU:\Software\Microsoft\Office\15.0\Lync\

user.name@domain.com\ContactStateCacheU\sip:user.name2@domain.com\

Key
Name
ClickToCall

 

HKCU:\Software\Microsoft\Office\15.0\Lync\user.name@domain.com\DS

Key
DontShowCWCloseTabQuery
DSAppsharingGrantControlToSpecificPersonNotification
DSCLOSELSCONF
DSCLOSEVOICE
DSLogoutCloseConversations
DSStartAppsharingNotification

HKCU:\Software\Microsoft\Office\15.0\Lync\

user.name@domain.com\\GroupChat\ma-chan:\\domain.com\b52c2524-eed6-48fa-9909-07d02e7922a7

Key
NewMessageRingtoneIndex
HighImportanceRingtoneIndex

 

HKCU:\Software\Microsoft\Office\15.0\Lync\

user.name@domain.com\GroupStateCacheU

Seems to contain a list of all contact groups and guids

HKCU:\Software\Microsoft\Office\15.0\Lync\

user.name@domain.com\LyncAutodiscovery

Key
cacheVersion
ExternalAuthServerUrl
ExternalSipServerUrl
ExternalTimeToLive
InternalAuthServerUrl
InternalSipServerUrl
InternalTimeToLive
TimeStamp
WebTicketServiceUrl

 

Update 19/9/2013: Richard has mapped some of the keys to the GUI here: http://masteringlync.com/2013/09/19/client-registry-keys/

728x90
728x90

Deep Dive into the Microsoft Lync 2013 Client Sign-in Process

 

 

Whether you're using Lync Server, hybrid, hosted or online, the c

OFC-B412.pptx
8.01MB

lient still needs to sign in to get everything started. Join this session to understand the internals of this process across the Lync clients, from Lyncdiscover to Edge—this session is technical and detailed around understanding the protocol flows and troubleshooting when things go sideways. 

728x90
728x90

해결 방법 

SQL Express 명령어로 설치

SQLEXPR_x64.exe /IACCEPTSQLSERVERLICENSETERMS /HIDECONSOLE /ACTION=Install /FEATURES=SQLEngine,Tools /INSTANCENAME=RTCLOCAL /TCPENABLED=1 /SQLSVCACCOUNT=”NT AUTHORITY\NetworkService” /SQLSYSADMINACCOUNTS=”Builtin\Administrators” /BROWSERSVCSTARTUPTYPE=”Automatic” /AGTSVCACCOUNT=”NT AUTHORITY\NetworkService” /SQLSVCSTARTUPTYPE=Automatic



증상 : SQL Express 설치 안됨.

SqlInstanceRtcLocal with a failure code of -2067922934.


728x90
728x90

Lync 2013 - Skype for Business Server 마이그레이션 Check List

 

After much searching you will find there isn’t much in the way of  guidance provided on TechNet when migrating from Lync 2013 to Skype for Business Server as there is when migrating from Lync 2010 to Lync 2013.  I was working on a Lync 2013 to Skype for Business Migration and wanted to make sure we didn’t forget anything when moving from a Lync 2013 Pool to a Skype for Business Pool. The following should help.  Essentially the process is the same so refer to https://technet.microsoft.com/en-us/library/jj205369%28v=ocs.15%29.aspx?f=255&MSPPError=-2147217396 for more details. 

많은 검색을 거친 후 Lync 2013에서 Skype for Business Server로 마이그레이션 할 때 TechNet에서 제공되는 안내 방법이 Lync 2010에서 Lync 2013으로 마이그레이션 할 때와 다름을 알 수 있습니다. Lync 2013 to Skype 비즈니스 마이그레이션을 위해 Lync 2013 풀에서 Skype for Business 풀로 이동할 때 우리가 무엇을 잊지 않았는지 확인하기를 원했습니다. 다음은 도움이 될 것입니다. 기본적으로 프로세스는 동일하므로 자세한 내용은 https://technet.microsoft.com/en-us/library/jj205369%28v=ocs.15%29.aspx?f=255&MSPPError=-2147217396을 참조하십시오.

 

Pre-requisites

This process assumes that your new pool is built and tested with pilot users. You have validated that all aspects and functionality are working as they should be including Edge server functionality. You have also cutover the required DNS records to support primary user sign on to this new pool as well as Public DNS records that support Skype for Business. It is best to dump all your DNS and SRV records and ensure you have not missed anything here.  Again, the article above will provide guidance if you need it.

Don’t forget any topology changes with respect to your Edge servers communicating with your next hop front end servers.  You likely need to make changes here.  Lastly if you have deployed phones, you may have to make DHCP changes with respect to your certificate publishing.  Guidance provided here.

Once you have addressed these prerequisites you can move on.

 

이 프로세스에서는 새 풀이 파일럿 사용자로 구성되어 테스트 된 것으로 가정합니다. Edge Server 기능을 포함해야하므로 모든 측면과 기능이 제대로 작동하는지 확인했습니다. Skype for Business를 지원하는 공용 DNS 레코드뿐만 아니라이 새로운 풀에 대한 기본 사용자 사인온을 지원하기 위해 필요한 DNS 레코드를 컷 오버했습니다. 모든 DNS 및 SRV 레코드를 버리고 여기에서 무엇이든 놓치지 않았는지 확인하는 것이 가장 좋습니다. 위에서 언급 한 기사에서도 필요한 경우 안내를 제공합니다.다음 홉 프런트 엔드 서버와 통신하는 에지 서버와 관련하여 토폴로지 변경 사항을 잊지 마십시오. 여기에서 변경해야 할 가능성이 큽니다. 마지막으로 전화기를 배치 한 경우 인증서 게시와 관련하여 DHCP를 변경해야 할 수도 있습니다. 여기에 안내가 제공됩니다.이 전제 조건을 다룬 후에는 계속 진행할 수 있습니다.

 

 

Response Groups

Step 1: Make a Copy

Export-CsRgsConfiguration -Source "service:ApplicationServer:LyncPool01.contoso.com" -FileName "D:\software\RGSExportCopy1.zip"

Step 2: Make a copy and then delete the source

Export-CsRgsConfiguration -Source "service:ApplicationServer:LyncPool01.contoso.com" -FileName "D:\software\RGSExportCopy2.zip" -RemoveExportedConfiguration

Step 3: Recreate the whole thing on new pool

Import-CsRgsConfiguration -Destination "service:ApplicationServer:SkypePool01.contoso.com" -FileName "D:\software\RGSExportCopy2.zip" -OverwriteOwner -ReplaceExistingRgsSettings

 

Common Area Phones

Get-CsCommonAreaPhone -Filter {RegistrarPool -eq "LyncPool01.contoso.com"} | Move-CsCommonAreaPhone -Target SkypePool01.contoso.com

 

Exchange Unified Messaging Contacts

Get-CsExUmContact -Filter {RegistrarPool -eq "LyncPool01.contoso.com"} | Move-CsExUmContact -Target SkypePool01.contoso.com

 

Dial in Conferencing PSTN Numbers

Get-CsDialInConferencingAccessNumber | where {$_.Pool -eq "LyncPool01.contoso.com"} | Move-CsApplicationEndpoint -TargetApplicationPool SkypePool01.contoso.com

 

Users

Get-CsUser -Filter {RegistrarPool -eq "LyncPool01.contoso.com"} | Move-CsUser -Target SkypePool01.contoso.com

After you move users make sure they are not assigned to any Site Level Voice Policies in the old pool. If both your pools are in the same site you don’t have to worry about this. If you are moving between sites then you should create all the required voice policies on the new pool and then change this for any users using them. As an example, the following changes

get-CsUser -Filter {VoicePolicy -eq "Site1:InternationalCalling"} | Grant-CsVoicePolicy -PolicyName "Site2:InternationalCalling"

 

Conference Directories

Get-CsConferenceDirectory | Where-Object {$_.ServiceID -match "LyncPool01.contoso.com"} | Move-CsConferenceDirectory -TargetPool "SkypePool01.contoso.com"

 

Lync Meeting Room Systems

Assuming all your Lync Room Systems are on the old pool you can run the following to move them to the new pool

Get-CsMeetingRoom | Move-CsMeetingRoom -Target SkypePool01.contoso.com

 

 

fyi https://www.ucguys.com/2016/10/lync-2013-to-skype-for-business-server-migration-checklist.html

728x90
728x90

참고 - URL

https://technet.microsoft.com/ko-kr/library/gg398069(v=ocs.15).aspx

728x90
728x90

CU 설치 시, 아래 박스안의 오류가 발생 되었다.

해결 방법

제어판>방화벽>Windows 방화벽을 통해 프로그램 또는 기능 허용

Windows Management Instrumentation(WMI) 체크

 

Install-CsDatabase : Command execution failed: Cannot determine where to instal
l database files because Windows Management Instrumentation on the database ser
ver is unavailable from your computer or user account. To continue, you can res
olve this issue, or you can specify where you want to install the files.
At line:1 char:1
+ Install-CsDatabase -ConfiguredDatabases -SqlServerFqdn be01.site1.mani4u.com

 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
    + CategoryInfo          : InvalidOperation: (:) [Install-CsDatabase], Depl
   oymentException
    + FullyQualifiedErrorId : ProcessingFailed,Microsoft.Rtc.Management.Deploy
   ment.InstallDatabaseCmdlet 

 

 

참조

http://www.wardvissers.nl/2011/01/05/microsoft-lync-error-microsoft-rtc-management-deployment-deploymentexception-cannot-determine-where-to-install-database-files-because-windows-management-instrumentation-on-the-datab/

Step 1:

  1. Click Start, and then click Control Panel.
  2. Open the Windows Firewall program.
  3. Click Change Settings to the Windows Firewall Settings dialog box.
  4. Verify that Windows Firewall is turned on, and then click the Exceptions tab.
  5. In the To enable an exception, select its check box window, scroll to locate the Remote Administration Program or Port exception.
  6. Make sure that the Remote Administration Program or Port exception is selected.
  7. Click OK to close the Windows Firewall Settings dialog box.

                image

Step 2: I had named the pool different than the server name, so I needed to add an A record or CNAME Record to DNS to get past.

 

 

끝.

728x90
728x90

최신 Lync Server 2013 Cumulative Update 파일을 다운로드 받아 둡니다.

파워쉘을 관리자 권한으로 실행합니다.

 

Step1. Get-CsPoolUpgradeReadinessState 명령어 후 State Value가 "REDY"인지 확인

PS C:\> Get-CsPoolUpgradeReadinessState


PoolName : LyncPool01.site1.mani4u.com
State : InSufficientActiveFrontEnds
TotalFrontends : 1
TotalActiveFrontends : 1
UpgradeDomains : {
UpgradeDomainName: UpgradeDomain1
IsReadyForUpgrade: True
Total FrontEnds: 1
Total Active FrontEnds: 1
Frontends: FE01.site1.mani4u.COM
}

State가 "InSufficientActiveFrontEnds"으로 표기 된다면 "stop-cswindowservice" 후

Get-CsPoolUpgradeReadinessState를 하면 State Value가 "REDY"로 변경 됩니다.

Step2. LyncServerUpdateInstaller.exe 설치

설치 완료 후 재부팅

Step3. Install-CsDatabase 설치

Install-CsDatabase -ConfiguredDatabases -SqlServerFqdn be01.site1.mani4u.com
-Verbose

 

 

Step4. Enable the Mobility service

Enable-CsTopology

 

Step5. Enable the Unified Communications Web API

%ProgramFiles%\Microsoft Lync Server 2013\Deployment\Bootstrapper.exe

 

정상적으로 반영 되었는지 확인 방법

첫번째. Product

Get-WmiObject -class Win32_Product | where {$_.name -like "*Lync Server*"} | Sort-Object Name | Select Name, Version |ft -AutoSize

 

 

 

PS C:\> Get-WmiObject -class Win32_Product | where {$_.name -like "*Lync Server*
"} | Sort-Object Name | Select Name, Version |ft -AutoSize

Name Version
---- -------
Microsoft Lync Server 2013, Administrative Tools 5.0.8308.920
Microsoft Lync Server 2013, Application Host 5.0.8308.920
Microsoft Lync Server 2013, Audio Test Service 5.0.8308.920
Microsoft Lync Server 2013, Conferencing Server 5.0.8308.920
Microsoft Lync Server 2013, Core Components 5.0.8308.920
Microsoft Lync Server 2013, Front End Server 5.0.8308.920
Microsoft Lync Server 2013, Reach Fonts 5.0.8308.0
Microsoft Lync Server 2013, Web Components Server 5.0.8308.920
Microsoft Lync Server 2013, Web Conferencing Server 5.0.8308.920
Microsoft Lync Server 2013, XMPP Translating Gateway 5.0.8308.920


PS C:\>

 

 

두번째. Back End Databases 버전 체크

Test-CsDatabase -ConfiguredDatabases -SqlServerFqdn be01.site1.mani4u.com

 

아래는 CU 생성 날자별 DB 버전입니다.

Enterprise의 경우 xds와 lis는 CMS에만 존재합니다.

버전 확인 URL 참조

http://blogs.technet.com/b/dodeitte/archive/2013/07/02/how-to-verify-if-lync-server-2013-database-updates-completed-successfully.aspx

 

 

끝.

 

 

 

 

감사합니다.

728x90
728x90

 

 

Lync 2013 설치시 명령어

 

http://technet.microsoft.com/en-us/library/gg398103.aspx

http://technet.microsoft.com/en-us/library/gg412871.aspx

Install-WindowsFeature RSAT-ADDS

 

 

 

 

Import-Module ServerManager

 

 

 

 

Add-WindowsFeature 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, Desktop-Experience, BITS -Source f:\sources\sxs

728x90
728x90

 

Lync2013 Server 모듈 설치 명령어

 

 

http://technet.microsoft.com/en-us/library/gg398103.aspx

http://technet.microsoft.com/en-us/library/gg412871.aspx

Install-WindowsFeature RSAT-ADDS

 

 

 

 

Import-Module ServerManager

 

 

 

 

Add-WindowsFeature 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, Desktop-Experience, BITS -Source f:\sources\sxs

728x90

+ Recent posts