Convert Classic Pages from Publishing Site - Unable to connect to SharePoint On-Premise environment using 'Connect-PnPOnline' #4400
Unanswered
gopaltiwari
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to convert On-Premise (SharePoint 2013) Classic Publishing pages to SharePoint online (Modern) pages. I am trying to follow the example given in below article:
Transform Classic Publishing Pages to Modern Pages using PnP
I am getting stuck at the very first step itself when I am trying to get a connection object from SharePoint 2013 on-prem environment:
$sp13Conn = Connect-PnPOnline "" -Credentials OnPrem -ReturnConnection -TransformationOnPrem
Here is another article which describes the same method:
Convert Classic Publishing Pages to Modern Pages
Due to recent Changes in PnP Management Shell registration, 'Connect-PnPOnline' no longer works with -Credentials OR -Interactive with -TransformationOnPrem parameters.
I also registered an Entra ID App to use with PnP by following below articles:
https://pnp.github.io/powershell/articles/registerapplication.html
Still, I am unable to connect to SharePoint 2013 On-Prem environmet using 'Connect-PnPOnline'.
Environment Details:
I am using latest PnP.PowerShell to execute PowerShell script.
PowerShell version 7.2 (Visual Studio Code)
Please let me know if 'Connect-PnPOnline' command can still be used to connect to SharePoint On-Prem environment.
if yes, please share a sample code.
Beta Was this translation helpful? Give feedback.
All reactions