Forum Discussion
Help I messed up Visual Studio Code and Connect-SPOService
mailto:Hello@Harm_Veenstra,
Thank you for pointing that out!
I made that change and tried:
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'.
So I tried:
get-module
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Manifest 7.0.0.0 Microsoft.PowerShell.Management {Add-Content, Clear-Content, Clear-Item, Clear-ItemProperty…}
Manifest 7.0.0.0 Microsoft.PowerShell.Security {ConvertFrom-SecureString, ConvertTo-SecureString, Get-Acl, Get-AuthenticodeSignature…}
Manifest 7.0.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object…}
Script 1.4.7 PackageManagement {Find-Package, Find-PackageProvider, Get-Package, Get-PackageProvider…}
Script 0.2.0 PowerShellEditorServices.Commands {Clear-Host, ConvertFrom-ScriptExtent, ConvertTo-ScriptExtent, Find-Ast…}
Binary 0.2.0 PowerShellEditorServices.VSCode {Close-VSCodeHtmlContentView, New-VSCodeHtmlContentView, Set-VSCodeHtmlContentView, Show-VSCodeHtmlContentView…}
Script 2.2.5 PowerShellGet {Find-Command, Find-DscResource, Find-Module, Find-RoleCapability…}
Script 2.1.0 PSReadLine {Get-PSReadLineKeyHandler, Get-PSReadLineOption, Remove-PSReadLineKeyHandler, Set-PSReadLineKeyHandler…}
Shouldn't I see Microsoft.Online.SharePoint.PowerShell as a module in VScode?
This error still occurs
Connect-SPOService: The term 'Connect-SPOService' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Thanks again,
V
- VivekvpFeb 25, 2022Brass ContributorHi 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- 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!