In this blog I will share Fix The term ‘Set-SPOSite’ is not recognized Error when using PowerShell.
This error occurs when the PowerShell on which you are running the Set-SpoSite command is not connected to SharePoint admin center.
To Fix The term Set-SPOSite is not recognized Error follow the steps below:
If you have not connected to SharePoint online using PowerShell before on the computer which you want to run the command, then we will have to install the module, once the module is installed we will follow the steps to connect to SharePoint Admin center.
1.Open Windows PowerShell on your computer, run it as an administrator:
It should look like this:
To install module and to prepare the PowerShell to connect to SharePoint Admin center, run the command below:
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
Type A to install:
The above command should start the Installation of the module.
The next step will require your SharePoint admin center URL which is unique for each tenant for the next step.
To find it go to https://admin.microsoft.com > click on SharePoint tab under Admin centers:
Once the SharePoint admin center is loaded you will find its URL on the top, it should look something like this:
Copy the URL and use it in the below command:
Connect-SPOService -Url https://prems-admin.sharepoint.com
Replace https://prems-admin.sharepoint.com in above command with your Admin center URL and then run the command:
Enter your Global admin or SharePoint admin Credentials to connect to SharePoint online using PowerShell.
To conclude, The term Set-SPOSite is not recognized Error occurs when we try to run SharePoint Online PowerShell Command but the PowerShell is not Connected to the SharePoint admin center.
Author: Prem, I have worked as an Office 365 ambassador, I used to take care of service request created for Office 365 products and services
Tags: Fix The term Set-SPOSite is not recognized Error