Lync/SfB PowerShell scripts

Probably the last post related to Lync/Skype for Business Server in UC Lobby... Since the first post on this blog (Enabling Trace Log in Office Communicator, Lync 2010 and Lync 2013 - May 2013) the focus has been to share information related to Lync/Skype for Business. With the release of Microsoft Teams customers started their … Continue reading Lync/SfB PowerShell scripts

PSScript: Get Phone Registration from Log files

Recently a customer requested to get a phone inventory, usually we can simply use the Skype for Business Monitoring Report: The issue was that customer had around 6000 phones and this report is limited to 1000 (by design). One option could be change the SQL Stored Procedure that is executed when we run the IP … Continue reading PSScript: Get Phone Registration from Log files

SfB CLS Logging: Understanding the CacheFileLocalMaxDiskUsage

Recently, we were asked about the CacheFileLocalMaxDiskUsage setting in CLS Logging. The issue was when CacheFileLocalMaxDiskUsage was configured to 60% the CLS Logging was returning empty log files. This setting will look at the total disk space used and not specific to used space by CLS log folder. If we configure it to 60 it means … Continue reading SfB CLS Logging: Understanding the CacheFileLocalMaxDiskUsage

Cannot Move SfB OnPrem user to Teams – OAuth_Bearer did not return expected status code from request

We notice an error while trying to move a user from the Skype for Business 2019 OnPrem to Teams: Trying to move on-prem skype for business user to Teams and getting an error Noticed the issue today when i tried to move a user The error i see is Move-CsUser : Hosted Migration Service (https://admin1a.online.lync.com/HostedMigration/HostedMigrationService.svc/OAuth_Bearer) … Continue reading Cannot Move SfB OnPrem user to Teams – OAuth_Bearer did not return expected status code from request

Lync/SfB Server: How to fix msRTCSIP-DeploymentLocator when it’s empty/not set

While working on a support case we notice that the AD Attribute msRTCSIP-DeploymentLocator wasn't set for some Skype for Business enabled users. These users could sign in and use the Skype for Business features, however, we decided to make sure all SfB OnPrem users had the correct value - "SRV:" We can use the following … Continue reading Lync/SfB Server: How to fix msRTCSIP-DeploymentLocator when it’s empty/not set

Changing Lync/SfB Server PowerShell windows size

A quick way to change the Lync/SfB Server PowerShell window size is to run the following cmdlets: [code language="powershell" light="true"] $pshost = get-host $pswindow = $pshost.ui.rawui $newsize = $pswindow.buffersize $newsize.height = 3000 $newsize.width = 120 $pswindow.buffersize = $newsize $newsize = $pswindow.windowsize $newsize.height = 50 $newsize.width = 120 $pswindow.windowsize = $newsize [/code] However, this change is … Continue reading Changing Lync/SfB Server PowerShell windows size

Lync/SfB Server: Certificate assignment location

Usually to check the Lync/SfB Server assigned certificates we simply use the Certificate Wizard (Step 3 in the Lync/SfB Deployment Wizard): Or we can also use a PowerShell cmdlet: Get-csCertificate https://docs.microsoft.com/powershell/module/skype/get-cscertificate However, there is another way... We can go directly to where the assigned certificates information is located. The certificate assignment is stored in XML, … Continue reading Lync/SfB Server: Certificate assignment location

Lync/SfB Server: Rebuilding the SQL Local Databases

While troubleshooting an issue where the Front End Service wasn't starting, we notice that the Event Viewer > Applications and Services Logs > Lync Server had references to the local database unavailability: Log Name: Lync Server Source: LS User Services Date: 02/01/2019 14:18:40 Event ID: 32122 Task Category: (1006) Level: Warning Keywords: Classic User: N/A Computer: sfbfe01.recore.lab … Continue reading Lync/SfB Server: Rebuilding the SQL Local Databases

Cannot remove the Director Pool – Users or Contacts are associated to it.

While trying to decommissioning a Lync Server 2013 Director Pool we got the following error message when we publish the new topology: This wasn't expected since a Director Pool shouldn't have users associated with it. After troubleshooting the issue, we notice that some users had the attribute msRTCSIP-PrimaryHomeServer associated to the Lync Server 2013 Director … Continue reading Cannot remove the Director Pool – Users or Contacts are associated to it.

Lync/SfB Server: Quickly access the Certificate Store

In a previous post we wrote about the Checks to do in the Lync/Skype for Business Server Certificate Store, however, sometimes we might also want to manually check it using the Certificate Store MMC. Since Windows Server 2012 and Windows 8 we can quick access the Certificate Store MMC, for Local Computer and Current User, using Command Prompt/PowerShell or the … Continue reading Lync/SfB Server: Quickly access the Certificate Store