You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Create the site to be used as a hub site using the [New-PnPSite](/powershell/module/sharepoint-pnp/new-pnpsite) cmdlet:
37
+
2. Create the site to be used as a hub site using the [New-PnPSite](https://pnp.github.io/powershell/cmdlets/New-PnPSite.html) cmdlet:
38
38
39
39
```powershell
40
40
New-PnPSite -Type TeamSite -Title "Contoso marketing division" -Alias "marketing" -Description "Main site for collaboration for marketing teams at Contoso"
@@ -46,10 +46,10 @@ First, we will create the marketing site that will serve as a hub site that othe
46
46
https://contoso.sharepoint.com/sites/marketing
47
47
```
48
48
49
-
3. Register the new marketing site as a hub site by using the [Register-SPOHubSite](/powershell/module/sharepoint-online/register-spohubsite) cmdlet:
49
+
3. Register the new marketing site as a hub site by using the [Register-PnPHubSite](https://pnp.github.io/powershell/cmdlets/Register-PnPHubSite.html) cmdlet:
@@ -60,7 +60,7 @@ The hub site doesn't have a logo or description yet. We also want to constrain i
60
60
61
61
1. Upload a logo image for the site by going to `https://contoso.sharepoint.com/sites/marketing/SiteAssets` and uploading any image you like. Make a note of the image file name.
62
62
63
-
2. Use the [Set-PnPHubSite](/powershell/module/sharepoint-pnp/set-pnphubsite) cmdlet to set the logo and description. In place of `mylogo.jpg`, specify the name of the image that you uploaded:
63
+
2. Use the [Set-PnPHubSite](https://pnp.github.io/powershell/cmdlets/Set-PnPHubSite.html) cmdlet to set the logo and description. In place of `mylogo.jpg`, specify the name of the image that you uploaded:
64
64
65
65
```powershell
66
66
Set-PnPHubSite
@@ -73,7 +73,7 @@ The hub site doesn't have a logo or description yet. We also want to constrain i
73
73
74
74
Now we will restrict access so that only the user `[email protected]` can make changes to the hub site associations.
75
75
76
-
- Run the [Grant-PnPHubSiteRights](/powershell/module/sharepoint-pnp/grant-pnphubsiterights) cmdlet to grant a user rights to the marketing hub site. We'll use `nestorw@contoso` in this example, but you can use any valid user on your tenant (you can specify multiple users by separating them with a comma):
76
+
- Run the [Grant-PnPHubSiteRights](https://pnp.github.io/powershell/cmdlets/Grant-PnPHubSiteRights.html) cmdlet to grant a user rights to the marketing hub site. We'll use `nestorw@contoso` in this example, but you can use any valid user on your tenant (you can specify multiple users by separating them with a comma):
2. Associate this site with the hub site by using the [Add-PnPHubSiteAssociation](/powershell/module/sharepoint-pnp/add-pnphubsiteassociation) cmdlet:
98
+
2. Associate this site with the hub site by using the [Add-PnPHubSiteAssociation](https://pnp.github.io/powershell/cmdlets/Add-PnPHubSiteAssociation.html) cmdlet:
99
99
100
100
```powershell
101
101
Add-PnPHubSiteAssociation
@@ -107,7 +107,7 @@ The final step is to create the site we want to associate with the hub. You can
107
107
108
108
To confirm, you can either:
109
109
110
-
- Run the [Get-PnPHubSite](/powershell/module/sharepoint-pnp/get-pnphubsite) cmdlet.
110
+
- Run the [Get-PnPHubSite](https://pnp.github.io/powershell/cmdlets/Get-PnPHubSite.html) cmdlet.
111
111
112
112
- Sign in to SharePoint Online and view the hub site directly at `https://contoso.sharepoint.com/sites/marketing`.
0 commit comments