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="https://erwinbierens.com/wp-content/uploads/2017/11/install-module-MicrosoftTeams.png" 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:

Connect-MicrosoftTeams
<img class="alignnone size-large wp-image-1440" src="https://erwinbierens.com/wp-content/uploads/2017/11/connect-microsoftteams.png" alt="" width="388" height="120" />

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

Disconnect-MicrosoftTeams

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:

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