Erwin Bierens

Knowledge is Power

Set-CsPhoneNumberAssignment : An unknown error occurred

2023-08-21 1 min read Microsoft Teams     "Erwin Bierens"

Today I ran into an issue where it was not possible to associate a phone number with a user in Microsoft Teams using PowerShell. Even the Teams Admin Center displayed an unknown error.

Unknown

Microsoft.Teams.ConfigAPI.Cmdlets.internal\Set-CsPhoneNumberAssignment : An unknown error occurred
At C:\Program Files\WindowsPowerShell\Modules\MicrosoftTeams\5.5.0\custom\Merged_custom_PsExt.ps1:1339 char:13
+             $result = Microsoft.Teams.ConfigAPI.Cmdlets.internal\Set- ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: ({ Identity = te...iceEnabled =  }:<>f__AnonymousType107`7) [Set-CsPho
neNumberAssignment_Set], Exception
    + FullyQualifiedErrorId : BadRequest,Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Cmdlets.SetCsPhoneNumberAssignment_Set

After some investigation, I found out that the user’s usage location was not configured to the correct country. The user was on located to Portugal, the phone number we wanted to associate is +31, which corresponds to the Netherlands.

Continue reading

Microsoft Teams - PowerShell Module 4.5.0

2022-07-06 2 min read Microsoft Teams     "Erwin Bierens"

Microsoft has released version 4.5.0 of the Teams PowerShell Module.

Microsoft Teams PowerShell Module (TPM) versions in the 4.x.x series or later are the only versions supported now. All earlier versions are fully retired since June 15, 2022 & will stop working (Message center post for reference - MC350371).

It’s recommended to update to the latest Teams PowerShell Module version.

Update your module by the following cmdlet:

Update-Module MicrosoftTeams

If you encounter problems you can use the -force parameter. For more info about installing the Microsoft Teams PowerShell module, follow this link.

Continue reading

Running PowerShell on your RaspberryPi

2018-12-06 1 min read Linux Powershell Erwin Bierens

For many years PowerShell was a Windows-only thing that was part of the closed Windows ecosystem. Now a days PowerShell is open source up at https://github.com/PowerShell with lots of docs and scripts, also open source.

PowerShell is supported on Windows, Mac, and a half-dozen Linux distros.

While running PowerShell on your RaspberryPi is still experimental and only supported for Raspbian Stretch it’s running pretty smoothly.

/

Installing

Install the prerequisites

	sudo apt-get install libunwind8

Grabbing the latest tar.gz

Continue reading

Activating Teams Calling -Microsoft Teams

2018-01-12 1 min read Microsoft Teams Erwin Bierens

This howto helps you to check/configure Calling in Microsoft Teams.

Make sure you have correct licenses on your Office365 tenant.

  • E1
  • E3
  • E5

Microsoft Phone System License (this one is included in E5) and a Calling plan (domestic or Domestic + International Calling)

/

Login to the Skype for Business Online Powershell

Make sure you have download the SkypeOnlineConnector for Powershell.

    Import-Module SkypeOnlineConnector
    $credential = Get-Credential
    $session = New-CsOnlineSession -Credential $credential -Verbose
    Import-PSSession $session
    Get-Command -Module tmp_mmdx3k5r.cuh

Check your tenant settings

Get-CsTeamsCallingPolicy

clip_image002

Continue reading

Microsoft Teams - Connect to Powershell

2017-11-06 1 min read Microsoft Teams Powershell Erwin Bierens

Hi Guys,

Microsoft recently(11-2017) released the Powershell Cmdlets (still in beta), which gives you the opportunity to manage Microsoft Teams by Powershell.

Installing

To get started you wil first need to install the Microsoft Teams Powershell module. You can do this by using the following command:

    Install-Module -Name MicrosoftTeams

install-module MicrosoftTeams

Loading module

Once you have installed a module on your system, you will likely want to import the module in order to use it. Importing is the process that loads the module into active memory, so that a user can access that module in their PowerShell session. You can use the following cmdlet te import the MicrosoftTeams module.

Continue reading

Powershell Enable / Disable / Set / Show Windows Web Proxy

2017-08-08 1 min read Powershell Erwin Bierens

Web Proxy

I’m currently working for a company where I have to set up a web proxy to connect my laptop to the Internet. Because I’m a little bit lazy to enable/disable this every morning when i come in, or when i open my laptop at home, i use these two oneliners in powershell:

EnableProxy:

set-itemproperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -name ProxyEnable -value 1

DisableProxy:

set-itemproperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -name ProxyEnable -value 0

Complete Script:

I also created a simple menu script with all the options to Enable, Disable, Set and Show. You can download the script from Technet Gallery If you have any questions or suggestions, please let me now :)

Continue reading

Configuring SEFAUtil - Skype for Business

2017-06-13 3 min read Skype for Business Erwin Bierens

What is SEFA Util

SEFAUtil (secondary extension feature activation) is a command-line tool that enables Skype for Business Server 2015 communications software administrators and helpdesk agents to configure delegate-ringing, call-forwarding, simultaneous ringing, team-call settings and group call pickup on behalf of a Skype for Business Server 2015 user. The tool also allows administrators to query the call-routing settings that are published for a particular user.The SEFAUtil tool allows the administrator to enable/disable/modify call forwarding or simultaneously ringing on behalf of the user. The administrator can specify the target (in the form of a SIP URI) or use a target that has already been published by the user. This tool also allows administrators to add or remove delegates or team-call group members on behalf of the user.This tool is built on Microsoft Unified Communications Managed API (UCMA) 3.0 and requires that administrators create a trusted application in the Central Management store for SEFAUtil.

Continue reading
Older posts