pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
987 stars 665 forks source link

Connect-PnPOnline: Unable to load shared library 'Advapi32.dll' or one of its dependencies. #2653

Closed JaggB closed 4 years ago

JaggB commented 4 years ago

Reporting an Issue or Missing Feature

Connect-PNPOnline not working on Ubuntu 16.04 LTS. Installed PowerShell and PNP PowerShell Module successfully.

Expected behavior

PS C:\Users\User> Connect-PnPOnline

Enter your credentials User:

Actual behavior

Connect-PnPOnline: Unable to load shared library 'Advapi32.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libAdvapi32.dll: cannot open shared object file: No such file or directory

Steps to reproduce behavior

Connect-PnPOnline

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

3.20.2004

How did you install the PnP-PowerShell Cmdlets?

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

jackpoz commented 4 years ago

PnP-PowerShell is currently supported only on Windows PowerShell and not on PowerShell Core (called also simply PowerShell)

The support to PowerShell Core requires CSOM dependency to support .NET Core and it's currently tracked at https://sharepoint.uservoice.com/forums/329220-sharepoint-dev-platform/suggestions/16585795-support-net-core-with-csom .

KoenZomers commented 4 years ago

@JaggB as @jackpoz mentions, the current version of PnP PowerShell (version 3) can only be run on Windows. A new version (version 4) is planned and will go cross platform. There is no ETA for it yet at this point.