Forum Discussion
Vivekvp
Feb 24, 2022Brass Contributor
Help I messed up Visual Studio Code and Connect-SPOService
Hello, Trying to connect to SPO in Powershell. It works in the ISE, does not in VSCode In VScode I tried this and got: Connect-SPOService -url https://<Tenant-admin>.sharepoint.com Connect...
Vivekvp
Feb 25, 2022Brass Contributor
Hi again!
I tried to import the module it and go this:
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
But received this warning:
WARNING: Version '16.0.21411.12000' of module 'Microsoft.Online.SharePoint.PowerShell' is already installed at 'C:\program files\powershell\7\Modules\Microsoft.Online.SharePoint.PowerShell\16.0.21411.12000'. To install version '16.0.22111.12000', run Install-Module and add the -Force parameter, this command will install version '16.0.22111.12000' side-by-side with version '16.0.21411.12000'.
I was thinking of using -Force, but it is already installed...
How do I view what module I have installed?
Thanks,
Victor
I tried to import the module it and go this:
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
But received this warning:
WARNING: Version '16.0.21411.12000' of module 'Microsoft.Online.SharePoint.PowerShell' is already installed at 'C:\program files\powershell\7\Modules\Microsoft.Online.SharePoint.PowerShell\16.0.21411.12000'. To install version '16.0.22111.12000', run Install-Module and add the -Force parameter, this command will install version '16.0.22111.12000' side-by-side with version '16.0.21411.12000'.
I was thinking of using -Force, but it is already installed...
How do I view what module I have installed?
Thanks,
Victor
Feb 25, 2022
You type install-module, but I asked if you could try import-module 😉 You can view which modules you have installed using get-module -listavailable
- VivekvpFeb 25, 2022Brass ContributorThat was helpful - so yes, I can see it is installed using get-module -listavailable !!!
Binary 16.0.2211… Microsoft.Online.SharePoint.PowerS…
But what does side by side mean in this case?
To install version '16.0.22111.12000', run Install-Module and add the -Force parameter, this command will install version '16.0.22111.12000' side-by-side with version '16.0.21411.12000'.
Thanks for your incredible patience with me!- Feb 25, 2022It tells you that you have an older version installed and that you can install a newer one next to the older one (by using -force). But since you have it installed on your machine, you can use it by import-module Microsoft.Online.SharePoint.PowerShell. By using the import-module command, you tell your session to start using the module. You don't have to install it again, you already have.
So.. Try it, after running import-module Microsoft.Online.SharePoint.PowerShell you should be able to use Connect-SPOService command again in VScode.