SOLVED
Home

Unable to install latest PowerShell Module

%3CLINGO-SUB%20id%3D%22lingo-sub-1266459%22%20slang%3D%22en-US%22%3EUnable%20to%20install%20latest%20PowerShell%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1266459%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20follow%20the%20instructions%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FMicrosoftTeams%2Fprivate-channels-life-cycle-management%23teams-powershell-module%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FMicrosoftTeams%2Fprivate-channels-life-cycle-management%23teams-powershell-module%3C%2FA%3E%26nbsp%3Bbecause%20ultimately%20I%20want%20to%20run%20the%26nbsp%3BGet-TeamChannelUser%20which%20is%20only%20available%20in%20these%20beta%20modules.%20It%20looks%20like%20they%20are%20at%20version%201.0.21%2C%20but%20I%20can't%20get%20past%20version%200.9.6.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20closed%20out%20of%20all%20PS%20sessions%20(even%20rebooted)%2C%20uninstalled%20the%20original%20Teams%20module%20and%20then%20started%20trying%20to%20install%20the%20latest.%20You%20can%20see%20in%20the%20screen%20shot%20below%20I%20already%20registered%20the%20repository%20which%20is%20why%20I%20get%20that%20error.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PSInstallTeams1.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F180756iE679E97E925ED895%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22PSInstallTeams1.png%22%20alt%3D%22PSInstallTeams1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ENow%20when%20I%20get%20the%20version%20of%20the%20installed%20module%2C%20it's%20still%200.9.6%20and%20the%20Get-TeamChannelUser%20is%20not%20available.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PSInstallTeams2.png%22%20style%3D%22width%3A%20975px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F180757i383E5A593798BF58%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22PSInstallTeams2.png%22%20alt%3D%22PSInstallTeams2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI've%20tried%20to%20do%20an%20Update-Module%20and%20even%20use%20the%20-UseMinimumVersion%20flag%20but%20none%20of%20that%20works.%20What%20am%20I%20missing%20here%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1266459%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1270135%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20install%20latest%20PowerShell%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1270135%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F421392%22%20target%3D%22_blank%22%3E%40michaelkubala%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%0A%3CDIV%3EThe%20command%20is%20available%20in%20current%20version.%20Can%20you%20please%20try%20any%20one%20of%20the%20below%20steps.%3C%2FDIV%3E%0A%3CP%3E%3CEM%3E1)%20clean%20uninstall%20and%20reinstall%20the%20microsoftteams%20module%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3Euninstall%3A%20Uninstall-Module%20-Name%20MicrosoftTeams%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EInstall%3A%26nbsp%3B%3CA%20tabindex%3D%22-1%22%20title%3D%22http%3A%2F%2Fwww.thatlazyadmin.com%2Finstall-microsoft-teams-powershell-module%2F%22%20href%3D%22http%3A%2F%2Fwww.thatlazyadmin.com%2Finstall-microsoft-teams-powershell-module%2F%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.thatlazyadmin.com%2Finstall-microsoft-teams-powershell-module%2F%3C%2FA%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E2)%20update%20the%20current%20version%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EUpdate-Module%20-Name%20MicrosoftTeams%3C%2FEM%3E%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CDIV%3E%E2%80%8B%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EMinimum%20powershell%20version%20should%20be%203.0%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1275486%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20install%20latest%20PowerShell%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1275486%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F451628%22%20target%3D%22_blank%22%3E%40subhasish-MSFT%3C%2FA%3E%26nbsp%3BYeah%20I've%20tried%20uninstalling%20and%20reinstalling%20several%20times%2C%20but%20it%20never%20updates%20to%20the%20latest%20version.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1288298%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20install%20latest%20PowerShell%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1288298%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F421392%22%20target%3D%22_blank%22%3E%40michaelkubala%3C%2FA%3E%26nbsp%3B%2C%3CBR%20%2F%3EWhich%20%3CSPAN%3Ecmdlet%26nbsp%3B%3C%2FSPAN%3Eare%20you%20trying%20for%20installing%20MicrosoftTeams%20module%3F%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20you%20please%20try%20this.%20It%20worked%20for%20me.%3CBR%20%2F%3EInstall-Module%20-Name%20MicrosoftTeams%20-RequiredVersion%201.0.21%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1288727%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20install%20latest%20PowerShell%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1288727%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F451628%22%20target%3D%22_blank%22%3E%40subhasish-MSFT%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYeah%20I%20had%20tried%20that%20command%2C%20but%20it%20didn't%20work.%20I%20got%20the%20issue%20resolved%20now%20though.%20I%20noticed%20that%20even%20after%20running%20Uninstall-Module%2C%20the%20module%20was%20still%20in%20my%20Modules%20directories%20on%20my%20machine.%20I%20manually%20deleted%20the%20MicrosoftTeams%20module%20folder%20in%20both%20modules%20directories%20and%20went%20through%20the%20install%20steps%20again%20and%20now%20I%20see%20that%20MicrosoftTeams%20v1.0.21%20is%20installed.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1359405%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20install%20latest%20PowerShell%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1359405%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20what%20I%20get%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EPS%20C%3A%5CWINDOWS%5Csystem32%26gt%3B%20Install-Module%20-Name%20MicrosoftTeams%20-RequiredVersion%201.0.21%0APackageManagement%5CInstall-Package%20%3A%20No%20match%20was%20found%20for%20the%20specified%20search%20criteria%20and%20module%20name%20'MicrosoftTeams'.%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EWithout%20-RequiredVersion%20it%20does%20install%2C%20but%20then%20it's%20the%201.06%20%3A(%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1388480%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20install%20latest%20PowerShell%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1388480%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F32866%22%20target%3D%22_blank%22%3E%40Denis%20Tiri%3C%2FA%3E%26nbsp%3Btry%20this!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fprivate-channels-life-cycle-management%23install-the-latest-teams-powershell-module-from-the-powershell-test-gallery%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fprivate-channels-life-cycle-management%23install-the-latest-teams-powershell-module-from-the-powershell-test-gallery%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1388697%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20install%20latest%20PowerShell%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1388697%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F539737%22%20target%3D%22_blank%22%3E%40ValliMarco%3C%2FA%3E%26nbsp%3BThank%20you!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I'm trying to follow the instructions here: https://docs.microsoft.com/en-us/MicrosoftTeams/private-channels-life-cycle-management#teams-powersh... because ultimately I want to run the Get-TeamChannelUser which is only available in these beta modules. It looks like they are at version 1.0.21, but I can't get past version 0.9.6. 

 

I closed out of all PS sessions (even rebooted), uninstalled the original Teams module and then started trying to install the latest. You can see in the screen shot below I already registered the repository which is why I get that error. 

 

PSInstallTeams1.png

Now when I get the version of the installed module, it's still 0.9.6 and the Get-TeamChannelUser is not available. 

PSInstallTeams2.png

I've tried to do an Update-Module and even use the -UseMinimumVersion flag but none of that works. What am I missing here?

7 Replies
Highlighted

@michaelkubala ,

 

The command is available in current version. Can you please try any one of the below steps.

1) clean uninstall and reinstall the microsoftteams module

uninstall: Uninstall-Module -Name MicrosoftTeams

Install: http://www.thatlazyadmin.com/install-microsoft-teams-powershell-module/

2) update the current version

Update-Module -Name MicrosoftTeams

 Minimum powershell version should be 3.0
Highlighted

@subhasish-MSFT Yeah I've tried uninstalling and reinstalling several times, but it never updates to the latest version. 

Highlighted

@michaelkubala ,
Which cmdlet are you trying for installing MicrosoftTeams module?

Can you please try this. It worked for me.
Install-Module -Name MicrosoftTeams -RequiredVersion 1.0.21

Highlighted
Solution

@subhasish-MSFT 

 

Yeah I had tried that command, but it didn't work. I got the issue resolved now though. I noticed that even after running Uninstall-Module, the module was still in my Modules directories on my machine. I manually deleted the MicrosoftTeams module folder in both modules directories and went through the install steps again and now I see that MicrosoftTeams v1.0.21 is installed. 

Highlighted

This is what I get

PS C:\WINDOWS\system32> Install-Module -Name MicrosoftTeams -RequiredVersion 1.0.21
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'MicrosoftTeams'.

Without -RequiredVersion it does install, but then it's the 1.06 :(

 

 

Highlighted

@ValliMarco Thank you!