pnp / PnP-PowerShell

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

Get-PnPFolder : A parameter cannot be found that matches parameter name 'List'[BUG] #3040

Open ghost opened 3 years ago

ghost commented 3 years ago

If you have a question and are not reporting a bug, please go to:

https://github.com/pnp/pnp-powershell/discussions

Issue

Trying to get all folders in a document library "Delte dokumenter" (Shared documents) via $library = "Delte dokumenter" Get-PnPFolder -list $library

Produces an exception:

Get-PnPFolder : A parameter cannot be found that matches parameter name 'list'. At line:1 char:15

Reporting an Issue or Missing Feature

Please confirm what it is that your reporting

Expected behavior

All the folders in the library will be listed.

Actual behavior

Get-PnPFolder : A parameter cannot be found that matches parameter name 'list'. At line:1 char:15

Steps to reproduce behavior

Connect to pnponline site Save library in variable and run Get-PnPFolder -list "libraryname"

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

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

3.9.1905.3 SharePointPnPPowerShellOnline

How did you install the PnP-PowerShell Cmdlets?