Skip to content

Instantly share code, notes, and snippets.

@pkbullock
Last active October 17, 2018 16:10
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/66772bd282d6f8c5659615e7e6c000a4 to your computer and use it in GitHub Desktop.
Save pkbullock/66772bd282d6f8c5659615e7e6c000a4 to your computer and use it in GitHub Desktop.
Script to Create Welsh Site using PnP PowerShell
$adminUrl = "https://<tenant>-admin.sharepoint.com"
$newSiteUrl = "https://<tenant>.sharepoint.com/sites/Pensaerniaeth"
$ownerEmail = "<your.name@your.email.com>"
$siteTitle = "Pensaerniaeth" # Translates to "Architecture" - Bing Translator
$siteTemplate = "SITEPAGEPUBLISHING#0" # Communication Site Template
$lcid = 1106 # Welsh (https://capa.ltd/mui-lcids)
$timeZone = 2 # London (https://capa.ltd/sp-timezones)
Connect-PnPOnline -Url $adminUrl -NoTelemetry
New-PnPTenantSite -Template $siteTemplate -Title $siteTitle -Url $newSiteUrl `
-Lcid $lcid -Owner $ownerEmail -TimeZone $timeZone
Write-Host "Script Complete! :)" -ForegroundColor Green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment