Skip to content

Cannot connect to the sharepoint server 2019 site with Connect-PnPOnline #4000

@jpmvasquez

Description

@jpmvasquez

Hi,

I'm working with SharePoint Server 2019 and want to use the PnP.Powershell cmdlets for classic to modern pages modernization purpose.

I use the PnP.PowerShell version 2.4.0 and I have powershell 7

I use this command to connect to my site :
Connect-PnPOnline -Url "https://..../sites/..." -TransformationOnPrem -CurrentCredentials -ReturnConnection -Verbose
-ValidateConnection
Executing this command gives me a 403 FORBIDDEN.

Note that I execute this command directly in the frontal server of the sharepoint

Can someone please give me some guidance on how I can connect to this SP 2019 on-premise ?

Thanks,
Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions