Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
149 views

Add-PnPOffice365GroupToSite blows up on alias parameter

Using the script posted here: https://docs.microsoft.com/en-us/sharepoint/dev/transform/modernize-connect-to-office365-group I am trying to add an Office 365 group to a standard Team site ...
1
vote
0answers
344 views

Not able to Load Managed Metadata Context

I am trying to create Term with PowerShell in SharePoint Online to do so I have written below code but on [Microsoft.SharePoint.Client.Taxonomy.TaxonomySession]::GetTaxonomySession($spContext) ...
2
votes
1answer
1k views

PnP Poweshell: Get-PnPListItem Restrict to a Specific View

I'm using Get-PnpList and Get-PnpListItem to retrieve all items in a specific list, but I would like to restrict the items to only those in a specific view? Is this possible? Maybe with a CAML query, ...
1
vote
1answer
183 views

Insert LookUp column in list using Sharepoint PNP PowerShell

I've this code bellow OfertaParticulares Connect-PnPOnline -Url https://test.sharepoint.com/sites/test/Negocio/OfertaParticulares -Credentials (Get-Credential) $listName="Páginas" $fieldName="...
0
votes
1answer
336 views

Picture library thumbnail url

Is there any way in powershellscript to get the thumbnail url from Picture library.? Actually i wan to use in custom search display template to get the thumbnail image.
0
votes
1answer
577 views

How create publishing page via CSOM or Powershell (SharePoint Online)

I would like to automate creation of a subsite and of a publishing site. Is it possible to create a publishing site and also dynamically add webparts to it e.g create also a document library on the ...
0
votes
1answer
717 views

Fetch Username from Lookup-Column using Powershell-PNP

I am trying to retrieve the actual username from a lookup column , the closest I got is $test=(Get-PnPListItem -List $list -Fields Owner -Id 1).FieldValues This of course returns the value as ...