Forum Discussion
RashmiVSharan
Jun 15, 2020Copper Contributor
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.
- Carlos_MarinsIron Contributor
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,
- RashmiVSharanCopper Contributor
Carlos_Marins Hi Carlos,
Thank You for your quick response.
Will I be able to use PnP Sharepoint On Linux Platform after the installation of O365 CLI https://pnp.github.io/office365-cli/https://pnp.github.io/office365-cli/
As the above link state that after installation in any other platform it will work.
If not?? Could You please guide me which APi (CSOM/Rest API,PnP) can be used in Powershell in Linux Platform.
- Carlos_MarinsIron Contributor
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.