Forum Discussion

RashmiVSharan's avatar
RashmiVSharan
Copper Contributor
Jun 15, 2020

I want to know whether PnP SharePoint can Work in Powershell On RHEL -7 (Linux Platform)

I have 1 TB of files to be migrated from LInux Platform i.e. RHEL 7 to sharepoint . For that i have installed Powershell and **Install-Module SharePointPnPPowerShellOnline** also.
But PnP is not establishing connection with sharepoint online. I want to know if the mentioned PnP will work or not on Linux Platform, and if not which PnP i have to Install. We have installed .NetCore as well.


 

  • Hi RashmiVSharan,

     

    Regarding the use of the PnP PowerShell library in the Linux platform, I believe it's not supported yet. Basically, the CSOM library used by PnP is not supported in PowerShell Core.

    Maybe you could use a Docker instance to access the files from a 'Windows context'? That way, you could use the PnP Powershell from your Docker instance and be able to connect successfully.

     

    Let me know if you need any help.

    Regards,

      • Carlos_Marins's avatar
        Carlos_Marins
        Iron Contributor

        HeyRashmiVSharan

         

        I haven't worked with the O365 CLI yet, but yeah you might be right. It seems to work with Linux platforms too. If that's the case, then I suggest you use it. Let me know if it doesn't work so we can work out a better solution for your problem.

Resources