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 Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

3 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… […]

  3. October 27, 2024

    […] We can verify current version module. Please refer article – Small Tips and Tricks – how to know the version of any installed PowerShell module – Get-InstalledModule – https://knowledge-junction.in/2022/12/12/small-tips-and-tricks-how-to-know-the-version-of-any-instal&#8230; […]

Leave a Reply

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