Small Tips and Tricks – how to know the version of any installed PowerShell module – Get-InstalledModule

fig : PowerShell - Get-InstalledModule CMDLET - Get the details of respective module
fig : PowerShell - Get-InstalledModule CMDLET - Get the details of respective module

Hi All,

Today very small but important article.

Detail / Background

  • Recently I got a chance to write a PowerShell script for deploying Microsoft Teams in my tenant at scale – article is in progress. Next article.
  • Deploying Teams at a scale is new feature and which requiring 4.7.0 or later version Microsoft Teams PowerShell module
  • Spp I want to know which version of Microsoft Teams PowerShell module is installed on my local laptop and hence this article

Solution / Steps – To know the version of any PowerShell module installed in our environment

  • We have PowerShell CMDLET – Get-InstalledModule
  • If we pass the module name to this CMDLET it returns the details like –
    • Version
    • Name
    • Repository
    • Description

Get-InstalledModule -Name MicrosoftTeams

output will be

Version Name Repository Description
——- —- ———- ———–
4.2.0 MicrosoftTeams PSGallery Microsoft Teams cmdlets module for Windows Power…

PowerShell - Get-InstalledModule CMDLET - Get the details of respective module
fig : PowerShell – Get-InstalledModule CMDLET – Get the details of respective module

Syntax

Get-InstalledModule
   [[-Name] <String[]>]
   [-MinimumVersion <String>]
   [-RequiredVersion <String>]
   [-MaximumVersion <String>]
   [-AllVersions]
   [-AllowPrerelease]
   [<CommonParameters>]

Thanks for reading the article !!! Please feel free to discuss in case any issues / suggestions / thoughts / questions !!!

HAVE A GREAT TIME AHEAD !!! LIFE IS BEAUTIFUL 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL :) ENJOY THE WHOLE JOURNEY :) Founder of Knowledge Junction and live-beautiful-life.com, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

2 Responses

  1. December 12, 2022

    […] We could check which version of Microsoft Teams PowerShell module installed – we have detailed article for the same – https://knowledge-junction.in/2022/12/12/small-tips-and-tricks-how-to-know-the-version-of-any-instal&#8230; […]

  2. August 18, 2023

    […] We have detailed article to know the respective module is installed or not – Small Tips and Tricks – how to know the version of any installed PowerShell module – Get-Install… […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: