Skip to content

Commit 0fb0991

Browse files
Merge pull request #8553 from bcameron1231/patch-18
Update PnP PowerShell Commands
2 parents ed4abf0 + 8aea59b commit 0fb0991

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/solution-guidance/the-pnp-office-open-xml-file-format.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: The PnP Office Open XML File format
33
description: Describes the PnP Office Open XML File Format, outlines how to manually edit and create PnP files, and provides additional references.
4-
ms.date: 06/07/2022
4+
ms.date: 11/08/2022
55
ms.localizationpriority: high
66
---
77

@@ -76,7 +76,7 @@ The easiest way to create a PnP file is to extract a template from a site and sp
7676

7777
```powershell
7878
Connect-PnPOnline -Url https://yourtenant.sharepoint.com/sites/yoursite
79-
Get-PnPProvisioningTemplate -Out myfile.pnp
79+
Get-PnPSiteTemplate -Out myfile.pnp
8080
```
8181

8282
[!INCLUDE [pnp-powershell](../../includes/snippets/open-source/pnp-powershell.md)]
@@ -88,17 +88,17 @@ This will however not give you the ability to modify the template easily. The be
8888
1. Extract a template as an XML file and provide the configuration file:
8989
```powershell
9090
Connect-PnPOnline -Url https://yourtenant.sharepoint.com/sites/yoursite
91-
Get-PnPProvisioningTemplate -Out myfile.xml -Configuration ./yourconfiguration.json
91+
Get-PnPSiteTemplate -Out myfile.xml -Configuration ./yourconfiguration.json
9292
```
9393
1. You will notice that one or more additional folders will have been created in your folder. These contain the actual files. When you open the XML file you'll notice ```<pnp:File />``` elements pointing to those files.
9494
1. Read the template into an in-memory object and save it as an PnP file:
9595
```powershell
96-
$template = Read-PnPProvisioningTemplate -Path myfile.xml
97-
Save-PnPProvisioningTemplate -Out myfile.pnp -Template $template
96+
$template = Read-PnPSiteTemplate -Path myfile.xml
97+
Save-PnPSiteTemplate -Out myfile.pnp -Template $template
9898
```
9999
100100
> [!NOTE]
101-
> You can also save a tenant template using PnP PowerShell substitute ```Read-PnPProvisioningTemplate``` with ```Read-PnPTenantTemplate``` and ```Save-PnPProvisioningTemplate``` with ```Save-PnPTenantTemplate```. Refer to [PnP Provisioning Tenant Template](pnp-provisioning-tenant-templates.md) for more information about Tenant templates.
101+
> You can also save a tenant template using PnP PowerShell substitute ```Read-PnPSiteTemplate``` with ```Read-PnPTenantTemplate``` and ```Save-PnPSiteTemplate``` with ```Save-PnPTenantTemplate```. Refer to [PnP Provisioning Tenant Template](pnp-provisioning-tenant-templates.md) for more information about Tenant templates.
102102
103103
104104
## See also

0 commit comments

Comments
 (0)