Microsoft Teams – Connect to Powershell

Hi Guys,

Microsoft recently released the Powershell Cmdlets (still in beta), which gives you the opportunity to manage Microsoft Teams by Powershell.
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
<img class="alignnone size-full wp-image-1438" src="" alt="install-module MicrosoftTeams" width="809" height="89" />

After installing the module we need to set up a connection to your Office 365 tenant, using the following command:

<img class="alignnone size-large wp-image-1440" src="" alt="" width="388" height="120" />

When you are finished you can use the following command to shut down the connection:


In the next blog i will explain how to use the other commands to manage your Teams.

Powershell Enable / Disable / Set / Show Windows 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:


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


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 šŸ™‚