Skip to content

Commit 5a67905

Browse files
authored
Update PnP PowerShell Commands
Fixes SharePoint#8547
1 parent ed4abf0 commit 5a67905

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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)