Skip to content

Instantly share code, notes, and snippets.

@pkbullock
Last active April 26, 2022 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkbullock/c3bf9e602564282a9560ccf45b371843 to your computer and use it in GitHub Desktop.
Save pkbullock/c3bf9e602564282a9560ccf45b371843 to your computer and use it in GitHub Desktop.
Provision UK Locale using the Provisioning Engine
Connect-PnPOnline https://tenant.sharepoint.com/sites/yoursite
Apply-PnPProvisioningTemplate -Path "UK-Locale-Example-Provisioning-Template.xml"
<?xml version="1.0"?>
<pnp:Provisioning xmlns:pnp="http://schemas.dev.office.com/PnP/2020/02/ProvisioningSchema">
<pnp:Preferences Generator="OfficeDevPnP.Core, Version=3.25.2009.1, Culture=neutral, PublicKeyToken=null" />
<pnp:Templates ID="CONTAINER-TEMPLATE-53C4E3E3CBC6443A8CE0B1B25C211A6F">
<pnp:ProvisioningTemplate ID="TEMPLATE-53C4E3E3CBC6443A8CE0B1B25C211A6F" Version="1" BaseSiteTemplate="STS#3" Scope="RootSite">
<pnp:RegionalSettings AdjustHijriDays="0" AlternateCalendarType="None" CalendarType="Gregorian" Collation="25" FirstDayOfWeek="Monday" FirstWeekOfYear="0" LocaleId="2057" ShowWeeks="false" Time24="true" TimeZone="2" WorkDayEndHour="5:00PM" WorkDays="62" WorkDayStartHour="8:00AM" />
</pnp:ProvisioningTemplate>
</pnp:Templates>
</pnp:Provisioning>
@mertEkizler
Copy link

Hello @pkbullock , how can I access this part? "<pnp:Preferences Generator="OfficeDevPnP.Core, Version=3.25.2009.1, Culture=neutral, PublicKeyToken=null" />"

Because I need to check both version check and name "OfficeDevPnP.Core". For example, I have to throw an error if the version is 3.25.2010.

I searched a lot but couldn't find it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment