Questions tagged [pnp-powershell]
PowerShell commands that allows you to perform complex provisioning and artifact management actions towards SharePoint. The commands use CSOM and can work against both SharePoint Online as SharePoint On-Premises.
785 questions
0
votes
0
answers
23
views
SP 2016 to SP Online page modernization approach using PnP
Describe the scenario
We are working on a SharePoint 2016 → SharePoint Online migration project and need to modernize publishing pages (including blog pages and web part pages) as part of the ...
0
votes
0
answers
32
views
Transformation of SharePoint 2016 publishing pages to SharePoint Online modern pages via PowerShell since Sep 2024 authentication change
I need to migrate SharePoint 2016 on-premises publishing pages to SharePoint Online, in the process transforming them to Modern pages.
Prior to September 2024 the general approach was like the start ...
0
votes
0
answers
25
views
How can I find names of groups assigned to a specific folder using PnP PowerShell
Morning All,
Using PnP PowerShell how can I find the sharepoint group(s) assigned to a specific folder?
I thought the following code would work but it doesn't:
#Get the WorkSet folder from URL
$...
0
votes
0
answers
15
views
Difference between Set-PnPFolderPermission and Set-PnPListItemPermission
I want to get a better handle of Set-PnPFolderPermission and Set-PnPListItemPermission.
What are experienced PnP PowerShell programmer's take on the differences between Set-PnPFolderPermission and Set-...
0
votes
0
answers
41
views
How to get a permissions matrix re[port of all SharePoint sites and document libraries in the tenant
I'm trying to get the below powershell script to work but getting this error :
The term 'Get-PnPRoleAssignment' is not recognized as a name of a cmdlet
It seems this command does not exist and if not ...
0
votes
1
answer
28
views
Getting values from multi-choice lookup field in Get-PnPListItemVersion response
Using Get-PnPListItemVersion i'm trying to get values from a SharePoint multi-choice lookup column but i'm having difficulty inspecting the field returned by Get-PnPListItemVersion
$versions = Get-...
1
vote
1
answer
291
views
Getting error as "Insufficient Privileges to complete the operation" while running command "Get-PnPMicrosoft365Group"
I am facing error:"Forbidden (403): Insufficient privileges to complete the operation." while executing command
$groupObj = Get-PnPMicrosoft365Group | Where-Object {$_.DisplayName -eq $group}...
0
votes
1
answer
76
views
import export list from two different SharePoint Online sites using PnP Powershell
I'm looking for a way to import a sharepoint list of a sharepoint site and export it into another destination.
I looked at this Powershell PnP commands
I don't want the CopyList as i need to have the ...
0
votes
1
answer
52
views
Set-PnPList or Set-PnPField fails to update immediately after a new list is created using Copy-PnPList
Any ideas why this code is not executing as expected? I tried adding a sleep after the Copy-PnPList but still didn't work.
try {
#Connect to the template site
$templateSiteConnection =...
0
votes
0
answers
33
views
I want to capture File Versions on a Sharepoint Tenant
Here is my script, but I cant capture file versions.
#Config Variables
$TenantAdminURL = "https://admin.sharepoint.com"
$CSVFilePath = "C:\Temp\RESTART.csv"
#Get the Root Web
#$Web ...
0
votes
0
answers
64
views
How do I use PnP to move large amounts of files without breaking sharing links and permissions?
I'm trying to find an archiving solution for my company that's easier than using the GUI and scrolling through large amounts of files and folders and manually using the Move To button. I have written ...
0
votes
0
answers
26
views
Copy user field with inactive user using pnp powershell
I'm following this tutorial to copy some fields into other fields in my list.
Overall it is working great, but when I copy a user field sometimes the pnp powershell throws "WARNING: No values ...
0
votes
1
answer
83
views
Invoke-PnPTenantTemplate did not perform any action
I have 2 tenants; Source & Destination. I export the site from source and try to invoke it inside the destination, but it failed, here are the steps i followed:-
Connect-PnPOnline -Url "...
0
votes
1
answer
455
views
Get-PnPSiteTemplate: The remote server returned an error: (403) Forbidden
I want to copy one site collection from one tenant to another, so on the source tenant, I created this App Registering and I grant it full control on SharePoint:-
And I define to use secret for the ...
0
votes
1
answer
93
views
Set-PnPTaxonomyFieldValue gives 'cannot bind parameter' error
I am using PnP.Powershell version 2.12.0.
I am trying to set values of two new managed metadata columns in a list using values from other columns. But I keep getting the following error:
Cannot bind ...