Skip to content

Commit b98e7ae

Browse files
sympmarcLinda Caputo
authored andcommitted
Fixed SPO commands to show the PnP prefix (SharePoint#2519)
1 parent 3fe8fe5 commit b98e7ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/solution-guidance/Introducing-the-PnP-Provisioning-Engine.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ To export that site as a provisioning template, you can either use PowerShell or
5151

5252
To use the PowerShell extensions for SharePoint Online or SharePoint, go to [PnP PowerShell overview](https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-pnp/sharepoint-pnp-cmdlets?view=sharepoint-ps),and install the OfficeDev PnP Core PowerShell extensions.
5353

54-
After you have connected your PowerShell environment to Office 365 by using the **Connect-SPOnline** cmdlet, you can use the following PowerShell cmdlet: `Get-SPOProvisioningTemplate -Out "PnP-Provisioning-File.xml"`.
54+
After you have connected your PowerShell environment to Office 365 by using the **Connect-PnPOnline** cmdlet, you can use the following PowerShell cmdlet: `Get-PnPProvisioningTemplate -Out "PnP-Provisioning-File.xml"`.
5555

5656
The `–Out` argument instructs the cmdlet about where to save the provisioning template.
5757

@@ -218,9 +218,9 @@ You can now apply a custom **ProvisioningTemplate** instance object either by ut
218218

219219
### Using PowerShell
220220

221-
If you want to use PowerShell, the following excerpt shows how you can utilize the **Apply-SPOProvisioningTemplate** cmdlet: `Apply-SPOProvisioningTemplate -Path "PnP-Provisioning-File.xml"`.
221+
If you want to use PowerShell, the following excerpt shows how you can utilize the **Apply-PnPProvisioningTemplate** cmdlet: `Apply-PnPProvisioningTemplate -Path "PnP-Provisioning-File.xml"`.
222222

223-
The `–Path` argument refers to the source template file, which the cmdlet automatically applies to the currently connected site (implied by the **Connect-SPOnline** cmdlet).
223+
The `–Path` argument refers to the source template file, which the cmdlet automatically applies to the currently connected site (implied by the **Connect-PnPnline** cmdlet).
224224

225225
In the following figure you can see the final result.
226226

@@ -256,7 +256,7 @@ What about using .NET code? Following is an excerpt on how to use CSOM and the O
256256
// Apply the template to another site
257257
Console.WriteLine("Start: {0:hh.mm.ss}", DateTime.Now);
258258

259-
// We can also use Apply-SPOProvisioningTemplate
259+
// We can also use Apply-PnPProvisioningTemplate
260260
web.ApplyProvisioningTemplate(template);
261261

262262
Console.WriteLine("End: {0:hh.mm.ss}", DateTime.Now);

0 commit comments

Comments
 (0)