12 lines
291 B
PowerShell
12 lines
291 B
PowerShell
$siteurl = "<Site URL>"
|
|
|
|
|
|
Connect-PnPOnline -Url $siteurl -Interactive
|
|
Write-Host "...Connected successfully"
|
|
$continue = Read-Host "Click C to continue"
|
|
if ($continue -ne "C") {
|
|
exit
|
|
}
|
|
|
|
$inputTemplateFile = "Metadata.xml"
|
|
Invoke-PnPSiteTemplate -Path $inputTemplateFile -Handlers Lists |