Page transformation using PnP Modernization script not working

Rajesh Lohar 21 Reputation points
2022-04-19T09:43:16.583+00:00

Hello,

We are migrating SharePoint 2016 on-premises to SharePoint Online. We are following below script for page transformation.

https://github.com/pnp/modernization/blob/dev/Scripts/PageTransformation/Convert-OnPremisesPublishingPages.ps1

We are able to connect SharePoint 2016, but it is throwing error as "The Remote Server returned an error (401) Unauthorized"

Please help if we are missing something.

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. Victor Gruber 81 Reputation points
    2022-04-19T10:35:45.59+00:00

    Make sure you are not behind a firewall. This will block your script.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Rajesh Lohar 21 Reputation points
    2022-04-19T13:45:20.573+00:00

    Hi,

    It is fixed, but now getting another error as below:

    "ConvertTo-PnPClientSidePage: Cannot bind positional parameters because no names were given"

    Anyone know what is missing here?

    Thanks,


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.