Skip to content

Update to PnP.PowerShell v2.4.0 #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CompleteResourceMapping.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if($DoNotReconnect.IsPresent -eq $false){
if($USE_APP_ONLY_AUTHENTICATION){
Connect-PnPOnline -Url $TARGET_SITE_URL -ClientId $TARGET_SITE_APP_ID -ClientSecret $TARGET_SITE_APP_SECRET -WarningAction Ignore
}else{
Connect-PnPOnline -Url $TARGET_SITE_URL -UseWebLogin -WarningAction Ignore
Connect-PnPOnline -Url $TARGET_SITE_URL -Interactive -WarningAction Ignore
}
}

Expand Down
2 changes: 1 addition & 1 deletion GenerateInitialMapping.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if($USE_APP_ONLY_AUTHENTICATION){
Connect-PnPOnline -Url $SOURCE_SITE_URL -SPOManagementShell -ClearTokenCache -WarningAction Ignore
}
else {
Connect-PnPOnline -Url $SOURCE_SITE_URL -UseWebLogin -WarningAction Ignore
Connect-PnPOnline -Url $SOURCE_SITE_URL -Interactive -WarningAction Ignore
}

try {
Expand Down
2 changes: 1 addition & 1 deletion MISC/Convert-Packages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $TARGET_SITE_URL = $Migration.TARGET_SITE_URL
if($USE_APP_ONLY_AUTHENTICATION){
Connect-PnPOnline -Url $TARGET_SITE_URL -ClientId $TARGET_SITE_APP_ID -ClientSecret $TARGET_SITE_APP_SECRET -WarningAction Ignore
}else{
Connect-PnPOnline -Url $TARGET_SITE_URL -UseWebLogin -WarningAction Ignore
Connect-PnPOnline -Url $TARGET_SITE_URL -Interactive -WarningAction Ignore
}

$xmlFiles = Get-ChildItem *.xml
Expand Down
8 changes: 4 additions & 4 deletions MISC/Move-Lists.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ if ($MigrationType -eq "Export") {
}

if ($exportContentTypes) {
Get-PnPProvisioningTemplate -ListsToExtract $titles -Out "Lists.xml" -Handlers Lists, ContentTypes, Fields -Force -WarningAction Ignore
Get-PnPSiteTemplate -ListsToExtract $titles -Out "Lists.xml" -Handlers Lists, ContentTypes, Fields -Force -WarningAction Ignore
}
else {
Get-PnPProvisioningTemplate -ListsToExtract $titles -Out "Lists.xml" -Handlers Lists -Force -WarningAction Ignore
Get-PnPSiteTemplate -ListsToExtract $titles -Out "Lists.xml" -Handlers Lists -Force -WarningAction Ignore
}

# Remove all Property Bag entries from the lists. Begin
Expand Down Expand Up @@ -175,7 +175,7 @@ if ($MigrationType -eq "Export") {
}

$xml.Save('Lists.xml')
"<?xml version=""1.0""?>`n" + (Get-Content "Lists.xml" -Raw -Encoding UTF8) | Set-Content "Lists.xml" -Encoding UTF8
(Get-Content "Lists.xml" -Raw -Encoding UTF8) | Set-Content "Lists.xml" -Encoding UTF8

# Remove all Property Bag entries from the lists. End
foreach ($title in $titles) {
Expand All @@ -196,7 +196,7 @@ if ($MigrationType -eq "Import") {
Write-Host "Importing lists and libraries..." -ForegroundColor Yellow

try {
Apply-PnPProvisioningTemplate -Path Lists.xml
Invoke-PnPSiteTemplate -Path Lists.xml
}
catch {
Write-Host "[Error] " -NoNewline -ForegroundColor Red
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added MISC/PnP.PowerShell/2.4.0/Core/AngleSharp.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added MISC/PnP.PowerShell/2.4.0/Core/PnP.Core.Auth.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added MISC/PnP.PowerShell/2.4.0/Core/PnP.Core.dll
Binary file not shown.
Binary file added MISC/PnP.PowerShell/2.4.0/Core/PnP.Framework.dll
Binary file not shown.
Binary file added MISC/PnP.PowerShell/2.4.0/Core/PnP.PowerShell.dll
Binary file not shown.
Binary file not shown.
Binary file added MISC/PnP.PowerShell/2.4.0/Core/Portable.Xaml.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added MISC/PnP.PowerShell/2.4.0/Core/TextCopy.dll
Binary file not shown.
Binary file not shown.
Loading