Forum Discussion

Alan0618's avatar
Alan0618
Copper Contributor
Aug 10, 2020

Cannot set SharePoint Home Site using PowerShell

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

  • 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.

  • Are you sure you are using the last version of the PowerShell Management Shell? If you try any other SPO cmdlet, does it work?
    • Alan0618's avatar
      Alan0618
      Copper Contributor

      jcgonzalezmartin 

      Thank you for the reply. 

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

       

      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!

       

       

      • SharonBauer's avatar
        SharonBauer
        Copper Contributor
        Connect SPOService to Admin site URL ; authentication and then run commnad.

Resources