Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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