Office 365 · Patterns And Practices · PowerShell · SharePoint · SharePoint 2013 · SharePoint 2016

Office 365 – SharePoint 2013/2016 – Replicating or migrating SharePoint sites.


Over the last year or so many of my posts have been related to the PnP Provisioning Engine. I've created multiple scripts to replicate my whole intranet from one tenant to another. I've set this all up in such a way that this would work for any intranet solution based on Office 365 or SharePoint… Continue reading Office 365 – SharePoint 2013/2016 – Replicating or migrating SharePoint sites.

Office 365 · Patterns And Practices · PowerShell · SharePoint

Office 365 – PnP PowerShell – The object is used in the context different from the one associated with the object


Today I tried to load the Fields from a list using PnP PowerShell and CSOM.   $ctx = Get-PnPContext $list = Get-PnPList -Web $web -Identity $listName $ctx.Load($list.Fields) $ctx.ExecuteQuery() This quite quickly resulted in : Exception calling "Load" with "1" argument(s): "The object is used in the context different from the one associated with the object."… Continue reading Office 365 – PnP PowerShell – The object is used in the context different from the one associated with the object

Office 365 · Patterns And Practices · Project Online · SharePoint · SharePoint 2013 · SharePoint 2016

Office 365 – PnP – Pages are not replicated


Over the last year or so many of my posts have been related to the PnP Provisioning Engine. I've created multiple scripts to replicate my whole intranet from one tenant to another. I've set this all up in such a way that this would work for any intranet solution based on Office 365 or SharePoint… Continue reading Office 365 – PnP – Pages are not replicated

Office 365

Office 365 – OfficeDev PnP PowerShell – Get all files in a folder


Today I tried to get a list of all files within a folder in SharePoint Online using PnP PowerShell. PnP PowerShell has a CmdLet Get-PnPFolder to get the folder. I used this Cmdlet to get the folder that contains the files that I'm interested in. My folder contains a set of Display templates. $folderUrl =… Continue reading Office 365 – OfficeDev PnP PowerShell – Get all files in a folder

Office 365 · SharePoint 2013 · SharePoint Online

Office 365 – Office Dev PnP PowerShell – Mixing up releases


It's not often that I work with SharePoint on-premises anymore, but recently I had a look at PnP PowerShell for SharePoint 2013.  Today I switched back to SharePoint Online.  I started to export some sites using get-PnPProvisioningTemplate and I got the following error message: powershell_ise.exe Information: 0 : 2017-03-20 14:55:48.3702 [Page Contents] [12] [Debug] Code… Continue reading Office 365 – Office Dev PnP PowerShell – Mixing up releases