Skip to content

Commit adfe402

Browse files
erwinvanhunenVesaJuvonen
authored andcommitted
Clarified use of SPO Management Shell and PnP PowerShell. Corrected download links and updated powershell snippet (SharePoint#1516)
1 parent bb5a3ee commit adfe402

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/features/hub-site/create-hub-site-with-powershell.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ ms.date: 2/26/2018
99
> [!IMPORTANT]
1010
> The hub sites feature is currently in preview and is subject to change. It is not currently supported for use in production environments.
1111
12-
If you're a global or SharePoint admin in Office 365, you can convert any existing site to a hub site using Microsoft PowerShell. In this example, learn how to create a SharePoint hub site, and associate another site with it. The scenario is that you are setting up sites for the Contoso marketing department. You will create a hub site that all other marketing sites are associated with. Then you will create a second site to associate with the hub site. You will also specify settings and permissions for the hub site.
12+
If you're a global or SharePoint admin in Office 365, you can convert any existing site to a hub site using Windows PowerShell. In this example, learn how to create a SharePoint hub site, and associate another site with it. The scenario is that you are setting up sites for the Contoso marketing department. You will create a hub site that all other marketing sites are associated with. Then you will create a second site to associate with the hub site. You will also specify settings and permissions for the hub site.
1313

1414
To work with this example in SharePoint online, we recommend using a developer tenant and not your production tenant. All of the steps use a fictional tenant named "Contoso" which you can replace with your own tenant name.
1515

1616
## Connect to SPO
1717

18-
First you need to get connected to SharePoint online using PowerShell. All of the commands are in the context of using the [SharePoint PnP PowerShell Online module](https://www.microsoft.com/en-us/download/details.aspx?id=35588)
18+
First you need to get connected to SharePoint Online using Windows PowerShell. The command use both the [SharePoint Online Management Shell](https://www.microsoft.com/en-us/download/details.aspx?id=35588) (-SPO) and [SharePoint PnP PowerShell Online module](https://www.powershellgallery.com/packages/SharePointPnPPowerShellOnline) (-PnP)
1919

20-
1. Start PowerShell
20+
1. Start Windows PowerShell
2121
2. Run the [Connect-SPOService](https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/connect-sposervice) cmdlet to connect to SharePoint online. Log in with your global admin credentials.
2222

2323
```PowerShell
@@ -33,6 +33,7 @@ Create the Marketing site. The marketing site will also be a hub site that other
3333
1. Create the site using the [New-PnPSite](https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/new-pnpsite) cmdlet.
3434

3535
```PowerShell
36+
Connect-PnPOnline -SPOManagementShell # this reuses the credentials you logged in with Connect-SPOService
3637
New-PnPSite -Type TeamSite -title "Contoso marketing division" -alias "marketing" -Description "Main site for collaboration for marketing teams at Contoso"
3738
```
3839

0 commit comments

Comments
 (0)