The term ‘Connect-SPOService’ is not recognized as the name of a cmdlet
If you’re trying to execute powershell script and you got this message, you need to install SPO Management Shell and import the module.
Execute this script (as Admin)
Install-Module Microsoft.Online.SharePoint.PowerShell -Force
Now, you can try to connect:
Connect-SPOService -url https://yourorganization-admin.sharepoint.com
Could not load type Microsoft.SharePoint.Administration.DesignPackageType
If you get this error (It was my problem), you can try solve it following these steps:
- From Windows Control Panel, uninstall “SharePoint Client Components”
- Execute (Admin mode) Uninstall-Module -Name Microsoft.Online.SharePoint.PowerShell -AllVersions -Force
- Execute (Admin mode) Install-Module Microsoft.Online.SharePoint.PowerShell -Force
I hope it help you…Have a good day!