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
That 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!
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, 2022
It 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.
So.. Try it, after running import-module Microsoft.Online.SharePoint.PowerShell you should be able to use Connect-SPOService command again in VScode.