MSTeams: Powershell for Linux

MSTeams Powershell for Linux


 Not long ago, MS have released powershell package for Linux which means we, Linux users, can now natively manage MS services from our terminal.

That's great news as now we don't separate Windows VMs or RDP Servers just for this reason.

This article will describe the setup for ZorinOS (Ubuntu-based distribution) but setup should be similar across all supported distros, namely Debian, Alpine and RedHat.

Here is a link from current powershell releases

Here we donwload .deb package

 
Installation is like every other package: 
sudo dpkg -i powershell_7.3.4-1.deb_amd64.deb

Once installed we need to start powershell using the command 

pwsh

 Next we need to import MicrosoftTeams module using the command

Install-Module -Name MicrosoftTeams

 We can now use MSTeams commands to check or configure our Teams tenant, for example

 

Get-CsOnlinePSTNGateway

Identity : connect.XXXXXXX
InboundTeamsNumberTranslationRules : {}
InboundPstnNumberTranslationRules : {}
OutboundTeamsNumberTranslationRules : {}
OutboundPstnNumberTranslationRules : {}
Fqdn : connect.XXXXXXX
SipSignalingPort : 5061
FailoverTimeSeconds : 10
ForwardCallHistory : False
ForwardPai : True
SendSipOptions : True
MaxConcurrentSessions : 24
Enabled : True
MediaBypass : False
GatewaySiteId :
GatewaySiteLbrEnabled : False
GatewayLbrEnabledUserOverride : False
FailoverResponseCodes : 408,503,504
PidfLoSupported : False
MediaRelayRoutingLocationOverride : AU
ProxySbc :
BypassMode : None
Description : XXXXXXX SBC

 

Comments

Most Popular

KVM on CentOS: Hyperconverged nested oVirt Cluter with Gluster vSAN

Creating oVirt ISO domain: Glusterised

ESXi 6.5 on KVM

oVirt: Creating a VM

VyOS ultra basic quick start guide

Installing .NET 3.5 on Windows Server 2012 / 2012R2

MSTeams User Direct routing number

Contact me by email

Name

Email *

Message *