728x90

Lately, I have found myself in situations where I don’t have full domain admin rights while working on Lync. This isn’t a bad thing but one area that I consistently run into issues with is the Lync Management Shell. If you are on a Lync Front-end and you don’t have Administrator rights, the local Lync Management Shell doesn’t actually do Role Based Access Control (RBAC). Therefore, I’ll try to execute a command (say, set-csuser, grant-csdialplan, etc) and get a permission denied. Yet, I can go into the Lync Control Panel and change a setting on the user just fine.

The way around this is remote PowerShell. Since I work on many different clients, I wrote a nice little script that will prompt me for my credentials and the remote server or pool.

 

############################################
# Connect-LyncRemotePoSH.ps1
# Written By: Adam Ball
# Version History:
# 1.0 - 12/12/2013 - Initial Script
#
############################################

#You can pass a server or pool name with the script (i.e. .\Connect-LyncRemotePoSH.ps1 myserver.mydomain.com )
param ($poolname)

#If no server or pool was passed when the script executed, pop up a box and ask for it.
if ($poolname -eq $null){
[System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic') | Out-Null
$poolname = [Microsoft.VisualBasic.Interaction]::InputBox("Enter a Pool or Server to connect to", "Remote Lync Pool or Server", "")
}

#Change the server or pool name in to a properly constructed URL
$poolname = "https://" + $poolname + "/OcsPowershell"
$cred = Get-Credential
$session = New-PSSession -ConnectionURI $poolname -Credential $cred
Import-PsSession $session

 

To execute, simply run the script (assuming proper execution policy is set). It will pop-up a box and ask you for the remote server or pool then pop up another box and ask for your credentials. You can also pass the server or pool name to it as part of the script execution (i.e. “.\Connect-LyncRemotePoSH.ps1 mypool.mydomain.com”).

This is also a nice way for being able to do Lync Management from your desktop without having the Lync tools installed.

Just remember, when you are done, remove the session by running “Remove-PsSession $session”.

FYI

https://phyler.wordpress.com/2013/12/12/lync-and-remote-powershell/

https://support.4it.com.au/article/files-cannot-be-loaded-because-running-scripts-is-disabled-on-this-system/

http://blog.insidelync.com/2011/08/remote-lync-powershell-administration/

 

Since you're using a third party firewall im assuming the native firewall is disabled? In any case double check your firewall rules to ensure 5895 and 5986 (if using ssl) inbound are allowed from your ip, on any port.

 

1. 방화벽 상태 확
   opened ports 80, 135, 443, 445, 5985, and 5986, but I am still unable to connect to the remote machine with the firewall enabled.

2. FE 서버와 파워셀을 날릴 서버에서 파워쉘 Policy "RemoteSigned" 설정
get-ExecutionPolicy RemoteSigned

$credential = get-credential
$sessionoption = new-pssessionoption -SkipRevocationCheck -SkipCAcheck -skipCNcheck
$session = New-PSSession -ConnectionUri https://pool01.mani4u.com/ocspowershell -credential $credential -SessionOption $sessionoption
IMport-Pssession $session

 

728x90
728x90

Exploring Default Installation and SQL Paths in Lync Server 2013

http://howdouc.blogspot.com/2012/11/exploring-default-installation-and-sql.html

 

 

SfB Topology Builder – Select Database File Location

http://silbers.net/sfb-topology-builder-select-database-file-location/

 

How to Install Lync SQL Express to a Non-System Drive

https://guybachar.net/2014/03/29/how-to-install-lync-sql-express-to-a-non-system-drive/

 

 

Script: Set-Cs2013Features.ps1 – Easily Install Prerequisites and Tools for Microsoft Lync Server 2013

https://www.ucunleashed.com/1697

 

Lync Server 2013: Using the DatabasePathMap Parameter to Deploy Databases

https://blogs.technet.microsoft.com/nexthop/2012/11/20/lync-server-2013-using-the-databasepathmap-parameter-to-deploy-databases/

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

download : https://www.microsoft.com/en-us/download/confirmation.aspx?id=47263

 

Skype for Business Server 2015, Debugging Tools is a collection of additional tools for use by IT Admins to aid in troubleshooting Skype for Business Server 2015 deployments. The collection of tools include:

  • Snooper
  • CLSLogger
  • CLSScenarioEdit.psm1
728x90
728x90

Stats Man and KHI released for Skype for Business Server 2019

Two more tools have been released for Skype for Business Server 2019. The Real-Time Stats Manager and Key Health Indicators (KHI) are now available for download here:

Real-Time Statistics Manager

Key Health Indicators

 

 

Setup Step-by-Step For Real-Time Stats Manager

https://blogs.technet.microsoft.com/dodeitte/2015/10/24/skype-for-business-server-real-time-statistics-manager/

 

https://blogs.technet.microsoft.com/dodeitte/2016/04/25/skype-for-business-server-real-time-statistics-manager-1-1-available/

Skype for Business Server 실시간 통계 관리자에 대한 업데이트를 사용할 수 있습니다. 릴리스 1.1에서 다음과 같은 알려진 문제점이 수정되었습니다.

• UI / 서버 / 에이전트 - 신뢰성 및 성능 향상

• UI - 기본 필터 제어가 이제 다른 경우와 정확하게 정렬됩니다 (사람들이 특정 서버가 시스템에 없을 때 시스템에 있다고 생각하게 만들었습니다)

• 서버 - 이제 서버 구성 요소가 영어가 아닌 서버에 설치됩니다.

• 서버 / 에이전트 - 특정 버전의 .NET 4.0 때문에 에이전트 및 서버 구성 요소가 .NET 오류로 설치되지 않는 경우가 있습니다. 이 문제가 해결되었습니다.

• 에이전트 - Statsman 에이전트에 확장 이벤트 로깅이 추가되었습니다. 토폴로지가 아닌 서버에 에이전트를 설치하면 더 이상 크래시가 발생하지 않으며 가능한 다른 많은 오류 조건과 함께 이벤트 로그에 기록됩니다.

• UI - Chrome 브라우저를 사용하는 웹 클라이언트는 Statistics Manager 웹 서버와 동일한 작업 그룹 또는 도메인에 가입되지 않은 클라이언트 컴퓨터를 사용할 때 여러 로그인 프롬프트를 보게됩니다. 이제 세션 당 하나의 로그인 만 필요합니다.

 

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

Introduction

Managing address book in Lync\SFB environment, in itself, is a task. Lync\SFB admins keep on getting address book related issues in the environment.

  • Users may notice duplicate contacts in address book search
  • User may notice old contact details (name, phone number, title etc).
  • Users see contacts deleted in Active Directory (resigned cases)
  • Users may not be able to search address book.
  • Users may experience “Cannot Synchronize Address Book” error as below.

"This article focusses on steps to resolve address book issues."


Re-Create the Address Book (Server)

This section of the article explains the process to re-create address book files at server end. Navigate following folder and delete the contents (existing address book files).

Lync_File_Share\1-WebServices-1\ABfiles\000000000\000000000



Forces the back-end user database to clear its replication status with Active Directory. This causes the database to re-read all the user-related information stored in Active Directory Domain Services.


Now, run following command on the Front End server;

Update-CsAddressBook

Forces the specified Address Book servers to synchronize their contents with the User database.


Wait for some time (5-10 mins, may be longer), and navigate to following location. You should see the files being recreated.

Lync_File_Share\1-WebServices-1\ABfiles\000000000\000000000

Check Address Book URLs

As a next step, make sure that you can browse to the following URLs.

As an internal client;

https://<internal web services url>/abs/handler 
https://<internal web services url>/abs/handler/GroupExpansion/Service.svc

As an external client;

https://<external web services url>/abs/handler 
https://<external web services url>/abs/handler/GroupExpansion/Service.svc

Test Address Book Service

Run following commands to check errors. You should be fine if it doesn’t return configuration related erros.

Test-CsAddressBookService

Test-CsAddressBookWebQuery

AddressBookAvailability Setting in Client Policy

You have option to select how a user should search a contact. There is a setting, AddressBookAvailability, in Lync\SFB client policy for this. By default, the policy is set to allow address book download and web search (by typing SIP URI of a contact).

Run following command to check address book setting.

Get-CsClientPolicy | Select-Object Identity,AddressBookAvailability | ft

There are currently three available settings for this parameter; WebSearchAndFileDownload,WebSearchOnly, and FileDownloadOnly. Define it as per your organization’s requirement.

  • WebSearchOnly is realtime and address book file content could be 24 hrs old.
  • You need to type full SIP URI for web search. Contact searching is user friendly if address book file downloaded.


Re-Create the Address Book (Client)

Now, re-create address book file, after performing above steps. First, delete local SIP profile of the users.

If user is running Skype For Business 2016

  • Log off of the Lync client and delete the profile from:
  • %userprofile%\appdata\Local\Microsoft\Office\15.0\Lync
  • Delete following registry key.
  • HKCU\Software\Microsoft\Office\16.0\Lync\sip@Domain.com

If user is running Lync 2013\Skype For Business 2015

  • Log off of the Lync client and delete the profile from:
  • %userprofile%\appdata\Local\Microsoft\Office\15.0\Lync
  • Delete following registry key.
  • HKCU\Software\Microsoft\Office\15.0\Lync\sip@Domain.com

If user is running Lync 2010

  • Log off of the Lync client and delete the profile from:
  • %userprofile%\AppData\Local\Microsoft\Communicator
  • Delete following registry key.
  • HKLM\Software\Policies\Microsoft\Communicator\sip@Domain.com

Download Address Book Immediately

In some cases, Lync\SFB users may face delay (upto 60 minutes) in address book download. Create this registry key to download address book immediately.

Run following command if user is running Skype For Business 2016

  • reg add HKLM\Software\Policies\Microsoft\Office\16.0\Lync /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f

Run following command if user is running Lync 2013\Skype For Business 2015

  • reg add HKLM\Software\Policies\Microsoft\Office\15.0\Lync /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f

Run following command if user is running Lync 2010

  • reg add HKLM\Software\Policies\Microsoft\Communicator /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f


728x90
728x90

Lync 오디오 품질 메트릭 입문서

The topic of audio quality can be vast and complex. 음질의 주제는 방대하고 복잡 할 수 있습니다. The purpose of this post is to provide some practical and easy to read guidance on the key metrics used in several Lync Server monitoring reports. 이 게시물의 목적은 여러 Lync Server 모니터링 보고서에 사용되는 주요 메트릭에 대한 실용적이고 읽기 쉬운 지침을 제공하는 것입니다. This will enable IT professionals to quickly gain insight into the audio quality of a particular Lync call or conference and troubleshoot poor audio quality if need be. 이를 통해 IT 전문가는 특정 Lync 전화 또는 회의의 오디오 품질에 대한 통찰력을 얻고 필요한 경우 열악한 오디오 품질 문제를 해결할 수 있습니다.

Note : this post is focused on audio metrics for Lync Audio – not enterprise voice audio – although some of the same metrics apply. 참고 :이 게시물은 동일한 측정 항목 중 일부가 적용되지만 Lync Audio 용 오디오 메트릭 (엔터프라이즈 음성이 아님)에 중점을 둡니다.

See my previous blog post Key Tips to Get Started with Lync Monitoring & Reporting to get started with the Lync Monitoring role and reports. Lync Monitoring 역할 및 보고서를 시작하려면 Lync Monitoring & Reporting 을 시작하는 데 필요한 이전 블로그 팁 주요 팁을 참조하십시오. Microsoft has a set of 4 documents to get you started and interpret the reports: Microsoft Lync Server 2010: Work Smart Guide for Monitoring Server Reports . Microsoft는 보고서를 시작하고 해석 할 수있는 4 가지 문서 세트를 제공합니다. Microsoft Lync Server 2010 : 서버 보고서 모니터링을위한 업무용 스마트 가이드 . Lastly, fellow Lync MVP Stale Hansen recently posted a good article regarding “ Lync Server 2010 Monitoring reports and why you always should deploy them ” which covers how and why you should deploy the Lync monitoring reports, and some of the metrics covered in this post. 마지막으로 동료 Lync MVP Stale Hansen은 최근에 " Lync Server 2010 모니터링 보고서 및이 보고서를 배포해야하는 이유 "와 관련된 좋은 기사를 게시했습니다.이 보고서 에는 Lync 모니터링 보고서를 배포해야하는 방법과 이유 및이 게시물에서 다루는 측정 항목 중 일부가 나와 있습니다.

 

728x90
728x90

1. 특정 Front-End 서버의 사용자만 찾고자 하는경우

Get-CsUser | Get-CsUserPoolInfo | Where-Object {$_.PrimaryPoolPrimaryRegistrar -eq "fe01.mani4u.com"} | ft identity, PrimaryPoolPrimaryRegistrar

 

 

2. 특정 Front-End 서버의 특정 사용자만 찾고자 하는경우

Get-CsUser -Filter {DisplayName -Like "*TEST*"} | Get-CsUserPoolInfo | Where-Object {$_.PrimaryPoolPrimaryRegistrar -eq "fe01.mani4u.com"} | ft identity, PrimaryPoolPrimaryRegistrar

 

결과값

Identity                                PrimaryPoolPrimaryRegistrar
--------                                ---------------------------
1000002@mani4u.com                     fe01.mani4u.com
1000010@mani4u.com                     fe01.mani4u.com
1000013@mani4u.com                     fe01.mani4u.com
1000014@mani4u.com                     fe01.mani4u.com
1000016@mani4u.com                     fe01.mani4u.com
1000019@mani4u.com                     fe01.mani4u.com
1000021@mani4u.com                     fe01.mani4u.com
1000024@mani4u.com                     fe01.mani4u.com

728x90
728x90

Phone Number Normalization Rule Regular Expressions

The pattern-matching notation of regular expressions makes it possible to quickly parse large amounts of text to find specific character patterns; to extract, edit, replace, or delete text substrings; or, to add the extracted strings to a collection in order to generate a report. You use .NET regular expressions to specify the phone pattern and the translation pattern as follows:

  • Phone pattern regular expression. This consists of designators and variables that represent specific sets of numbers. For example, the phone pattern regular expression of ^9(\d{7})$ describes phone numbers that consist of the number 9 followed by any seven digits.

  • Translation pattern regular expression. This consists of the + symbol, numbers, and the $ symbol. The $ symbol captures the items of the phone pattern regular expression that are included inside the parenthesis. The number following the $ symbol must be less than or equal to the total number of captures specified by the phone pattern regular expression.

    For example, the translation pattern regular expression of +1425$1 describes a translation that adds a prefix of +1425 to the captures (the phone pattern items in parenthesis). If the phone pattern regular express is ^9(\d{3})(\d{4})$ (containing two captures), the number following the $ sign can only be 1 or 2.

The following table shows sample normalization rules and the corresponding values for the rule name, description, phone pattern, and translation pattern.

Rule Name

Description

Phone Pattern

Translation Pattern

Example

4digitExtension

Translates 4-digit extensions

^(\d{4})$

+1425555$1

1234 is translated to +14255551234

5digitExtension

Translates 5-digit extensions

^8(\d{4})$

+1425558$1

81234 is translated to +14255581234

7digitcallingRedmond

Translates 7-digit numbers to Redmond local number

^(\d{7})$

+1425$1

5551212 is translated to +14255551212

7digitcallingDallas

Translates 7-digit numbers to Dallas local number

^(\d{7})$

+1972$1

5551212 is translated to +19725551212

10digitcallingUS

Translates 10-digit numbers in US

^(\d{10})$

+1$1

2065551212 is translated to +12065551212

LDCallingUS

Translates numbers with LD prefix in US

^1(\d{10})$

+1$1

12145551212 is translated to +12145551212

IntlCallingUS

Translates numbers with international prefix in US

^011(\d*)$

+$1

011914412345678 is translated to +914412345678

RedmondOperator

Translates 0 to Redmond Operator

^0$

+14255551212

0 is translated to +14255551212

RedmondSitePrefix

Translates numbers with on-net prefix (6) and Redmond site code (222)

^6222(\d{4})$

+1425555$1

62221234 is translated to +14255551234

NYSitePrefix

Translates numbers with on-net prefix (6) and NY site code (333)

^6333(\d{4})$

+1202555$1

63331234 is translated to +12025551234

DallasSitePrefix

Translates numbers with on-net prefix (6) and Dallas site code (444)

^6444(\d{4})$

+1972555$1

64441234 is translated to +19725551234

 

출처

https://support.office.com/en-us/article/phone-number-normalization-rule-regular-expressions-6ea76427-0892-4237-b024-10b418dcb05e

 

추가 참고

Lync Dial Plans and Normalization Rules :

http://designinglync.blogspot.com/2011/05/lync-dial-plans-and-normalization-rules.html

728x90

+ Recent posts