Cannot set SharePoint Home Site using PowerShell

Copper Contributor

Hi Team,

I've done some research online, and haven't found a solution to the issue I'm seeing. We have a Targeted Release tenancy, and wanted to try out the Home Site feature following directions from Microsoft. 

https://docs.microsoft.com/en-us/SharePoint/home-site

 

I have SharePoint Online Management Shell already installed, connected to my tenant, and executed the command: Set-SPOHomeSite -HomeSiteUrl MYSITEURL

 

Unfortunately, I receive the following error:

Set-SPOHomeSite : The term 'Set-SPOHomeSite' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

 

Any ideas why I would be receiving this error?

 

Thank you so much for your help!

 

Kind regards,

 

Alan Bryan

 

5 Replies
Are you sure you are using the last version of the PowerShell Management Shell? If you try any other SPO cmdlet, does it work?

@Juan Carlos González Martín 

Thank you for the reply. 

I uninstalled and re-installed the current version of SharePoint Online Management Shell: 16.0.20324.12000. 

Alan0618_0-1597861792573.png

 

Unfortunately, Set-SPOHomeSite still does not work. I tried your recommendation to test any SPO cmdlet, and Set-SpoSite works without any issues. (Please see below).

 

Any ideas why it'd be doing this? Thanks so much for your help!

 

Alan0618_3-1597861988870.png

 

Connect SPOService to Admin site URL ; authentication and then run commnad.
Like this: Connect-SPOService -URL https://xxxx-admin.sharepoint.com <Enter> You will then be prompted for a SharePoint Admin or 0365 Global admin Account ID and Password; enter Code. Now type: Set-SPOHomeSite -HomeSiteURL https://(Your Url)

@Alan0618 Try downloading latest version of SharePoint Online Management Shell & then updating SharePoint online PowerShell module using:

 

Update-Module -Name Microsoft.Online.SharePoint.PowerShell

 

Also make sure you are using communication site URL to set it as a home. You can follow below article for detailed steps:

Set up a home site in SharePoint Online 


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.