
@sns The parameter -Principals
in the command Register-SPOHubSite is used to specify one or more principles (user or group) to be granted rights to the specified HubSite, it is same with the following setting when registering a hub site via UI:
If you want to register a site as a hub site without setting any principals for it, you can just press Enter for the parameter, like the below:
Or, you can use the following:
Register-SPOHubSite https://contoso.sharepoint.com/sites/Marketing -Principals $null
About creating a hub site in SharePoint:
https://learn.microsoft.com/en-us/sharepoint/create-hub-site
----------------------------------
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.