Manage Microsoft Teams PowerShell Module

As most of us know, the steps to install and update the Microsoft Teams Powerhell Module are described here: Install Microsoft Teams PowerShell Module However, it is also possible to install, load and remove previous versions. To list all installed versions we need to use the ListAvailable parameter: Get-Module -ListAvailable MicrosoftTeams By default, the module … Continue reading Manage Microsoft Teams PowerShell Module

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

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: However, this change is temporary, when we open a new Lync/SfB Server PowerShell it will return to the default values. To modify the default values we need to change Layout settings in the Lync/SfB Server PowerShell shortcut properties: Lync … Continue reading Changing Lync/SfB Server PowerShell windows size

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

Teams: Check client version using PowerShell

An easy way to check MS Teams version is in the client by going to About > Version: The version will be displayed near the Command Box: The MS Teams client is installed per user and the version is stored in the settings.json file: %AppData%\Microsoft\Teams\ Using PowerShell we can convert JSON files to PowerShell Objects: PowerTip: Convert JSON … Continue reading Teams: Check client version using PowerShell

Lync/SfB: Check client version using PowerShell

During troubleshooting we often need to check the installed version, for Lync/SfB Server we already know how to check the installed version using PowerShell: Skype for Business Server Component Version using Get-CsServerPatchVersion Skype for Business Server 2015 Component Version using PowerShell Lync Server Component Version using PowerShell (Windows Registry) On the client we can check the version by using … Continue reading Lync/SfB: Check client version using PowerShell

Lync/SfB Server: Stop Front End service in Starting state

Some of the cases we work have the Front End service in a Starting state: In PowerShell the status is StartPending: We cannot stop it on the Services Management Console: We can go to Task Manager and try to manual stop the service: If that doesn't work we need to Go to Details and End task that is associated with … Continue reading Lync/SfB Server: Stop Front End service in Starting state

SfB Server Component Version using Get-CsServerPatchVersion

The recent November 2015 Cumulative Update for Skype for Business Server 2015 added the Get-CsServerPatchVersion to the available PowerShell cmdlets. This new PowerShell cmdlet replaces the previous methods (Windows Registry and WMI Classes). To get the Skype4B Server Component Version: Skype for Business Server 2015 Component Version using PowerShell We need to make sure that … Continue reading SfB Server Component Version using Get-CsServerPatchVersion