SOLVED

Manual Install of Teams PowerShell Module?

%3CLINGO-SUB%20id%3D%22lingo-sub-2007945%22%20slang%3D%22en-US%22%3EManual%20Install%20of%20Teams%20PowerShell%20Module%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2007945%22%20slang%3D%22en-US%22%3E%3CP%3EInstead%20of%20using%20Install-Module%20to%20install%20the%20latest%20version%20(1.1.6)%20of%20the%20Teams%20PowerShell%20module%2C%20is%20it%20possible%20to%20download%20the%20NUPKG%20file%20and%20manually%20install%3F%26nbsp%3B%20I%20would%20like%20to%20install%20the%20module%20on%20a%20machine%20that%20has%20limited%20access%20to%20external%20sites%20and%20adding%20the%20PowerShell%20Gallery%20to%20that%20list%20is%20not%20an%20option%20at%20the%20moment.%26nbsp%3B%20I've%20attempted%20to%20use%20the%20instructions%20at%20the%20link%20below%20but%20doing%20so%20results%20in%20a%20bunch%20of%20%22could%20not%20load%20file%20or%20assembly%22%20errors%20when%20attempting%20Import-Module%20MicrosoftTeams.%26nbsp%3B%20Is%20a%20manual%20install%20even%20possible%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fscripting%2Fgallery%2Fhow-to%2Fworking-with-packages%2Fmanual-download%3Fview%3Dpowershell-7.1%23using-manual-download-to-acquire-a-package%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EManual%20Package%20Download%20-%20PowerShell%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2007945%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2016519%22%20slang%3D%22en-US%22%3ERe%3A%20Manual%20Install%20of%20Teams%20PowerShell%20Module%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2016519%22%20slang%3D%22en-US%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9442%22%20target%3D%22_blank%22%3E%40Shawn%20Beckers%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20per%20the%20docs%20articles%20it%20is%20recommended%20to%20install%20it%20via%20the%20shell%20session.%20Run%20as%20administrator%20and%20then%20%3CBR%20%2F%3E%3CBR%20%2F%3EInstall-Module%20MicrosoftTeams%20-RequiredVersion%20%221.1.6%22%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20could%20download%20the%20.nupkg%20file%20from%20the%20Powershell%20Gallery%2C%20get%20it%20onto%20the%20machine%20via%20removable%20media%20or%20cloud%20storage%2C%20then%20use%20a%20combination%20of%20the%20docs%20articles%20together%20with%20videos%20such%20as%20this%20to%20extrapolate%20how%20to%20install%20manually%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DHEWxChLAMQk%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DHEWxChLAMQk%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20per%20the%20docs%20article%2C%20it%20is%20not%20recommended%2C%20so%20would%20do%20it%20via%20the%20shell%20session%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20that%20answers%20your%20question%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2029654%22%20slang%3D%22en-US%22%3ERe%3A%20Manual%20Install%20of%20Teams%20PowerShell%20Module%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2029654%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20the%20suggestion%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F169605%22%20target%3D%22_blank%22%3E%40Christopher%20Hoard%3C%2FA%3E.%26nbsp%3B%20Unfortunately%20the%20process%20demoed%20in%20YouTube%20video%2C%20copying%20the%20module%20from%20one%20machine%20to%20another%2C%20doesn't%20seem%20to%20work%20for%20the%20latest%20Teams%20PS%20module.%26nbsp%3B%20Our%20security%20team%20is%20currently%20rejecting%20my%20request%20to%20allow%20the%20machines%20which%20would%20use%20the%20module%20to%20have%20access%20to%20the%20PowerShell%20repository%20required%20for%20installation.%26nbsp%3B%20Since%20I%20only%20require%20a%20few%20of%20the%20commands%20this%20module%20provides%20I%20guess%20I'll%20look%20at%20using%20the%20Graph%20API%20instead.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Instead of using Install-Module to install the latest version (1.1.6) of the Teams PowerShell module, is it possible to download the NUPKG file and manually install?  I would like to install the module on a machine that has limited access to external sites and adding the PowerShell Gallery to that list is not an option at the moment.  I've attempted to use the instructions at the link below but doing so results in a bunch of "could not load file or assembly" errors when attempting Import-Module MicrosoftTeams.  Is a manual install even possible?

 

Manual Package Download - PowerShell | Microsoft Docs

3 Replies
Best Response confirmed by adam deltinger (MVP)
Solution
Hi @Shawn Beckers

As per the docs articles it is recommended to install it via the shell session. Run as administrator and then

Install-Module MicrosoftTeams -RequiredVersion "1.1.6"

You could download the .nupkg file from the Powershell Gallery, get it onto the machine via removable media or cloud storage, then use a combination of the docs articles together with videos such as this to extrapolate how to install manually

https://www.youtube.com/watch?v=HEWxChLAMQk

As per the docs article, it is not recommended, so would do it via the shell session

Hope that answers your question

Best, Chris

Thanks for the suggestion @Christopher Hoard.  Unfortunately the process demoed in YouTube video, copying the module from one machine to another, doesn't seem to work for the latest Teams PS module.  Our security team is currently rejecting my request to allow the machines which would use the module to have access to the PowerShell repository required for installation.  Since I only require a few of the commands this module provides I guess I'll look at using the Graph API instead.

Hi @Shawn Beckers

For sure. Graph - or, another way around since I myself am not allowed to install modules on my local machine for exactly the same reasons, is to spin up a VM on Azure and do it that way.

Best, Chris