Microsoft Teams [new PowerShell module] – 1.05

The Teams PowerShell module is slowly morphing from the Beta/pre-production version that was released last year. With version 1.05 we see that Microsoft is consolidating cmdlets and transforming how the module interacts with Microsoft Teams. Is it perfect? No. Does it contain all the Skype functionality? No. However it does allow for strictly Teams-centric operations. Let’s dive in how to get this new module

First. Where can you get this module?

https://www.powershellgallery.com/packages/MicrosoftTeams/1.0.5

Second. Uninstall old versions

Why is this step necessary? Byu default, the Install-Module cmdlet does not overwrite the older module. Also, if we decided to install it anyways, it will install the module side by side. this means that your older version (1.04, 1.03, or whatever) will still be installed:

Make sure that you run the PowerShell windows as an Administrator, or you will get an error message about insufficient permissions:

Also make sure there are no additional PowerShell windows open with the module loaded otherwise you will get an error for that as well. Next we make sure the module is removed from the shell’s memory:

Then we can uninstall the module:

Third. Install the module

Now that we have the old version is uninstalled, we can install the new one. However, we find out that the module exists in multiple repositories:

So when we install it, we need to pick the one (PSGallery) that contains the 1.05 version of the module:

Once installed, we can import the module and verify it’s loaded:

Last. Reviewing the cmdlets

Now that we’ve removed all the old versions, we can now look at the new version cmdlets:

If you want to see what can be done with these cmdlets, please see the PowerShell Templates page of this site for the Microsoft Teams quick reference. Enjoy!

Related Post

Compare-ObjectCompare-Object

Depending on what tasks you perform with PowerShell, you may never need Compare-Object. However, when you need it, you will find it immensely helpful and problematic at the same time.