Hello @Rose Fletcher
It's possible that the SharePoint Online Management Shell module was not imported into your PowerShell session before you attempted to use the Connect-SPOService
cmdlet.
Try importing the module first using the Import-Module
cmdlet:
mathematica
Import-Module Microsoft.Online.SharePoint.PowerShell
Then try running the Connect-SPOService
cmdlet again.
If that doesn't work, try uninstalling the SharePoint Online Management Shell module and installing it again using the following steps:
Open PowerShell as an administrator.
Run the following command to uninstall the module:
mathematica
-
Uninstall-Module -Name Microsoft.Online.SharePoint.PowerShell -Force
Close and reopen PowerShell as an administrator.
Run the following command to install the latest version of the module:
mathematica
-
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
Import the module by running the following command:
mathematica
-
Import-Module Microsoft.Online.SharePoint.PowerShell
Finally, try running the Connect-SPOService
cmdlet again.
If you're still having issues after trying these steps, there may be an issue with your installation of the SharePoint Online Management Shell module, share your feedback
If the answer helped you kindly mark it as Accepted!
Regards