Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

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

Open
2 tasks
ghost opened this issue Jan 8, 2021 · 0 comments
Open
2 tasks
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Jan 8, 2021

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

  • Get-PnPFolder -list $library
  •           ~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Get-PnPFolder], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,SharePointPnP.PowerShell.Commands.Files.GetFolder

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

  • Get-PnPFolder -list $library
  •           ~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Get-PnPFolder], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,SharePointPnP.PowerShell.Commands.Files.GetFolder

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?

  • PnP PowerShell for SharePoint Online

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

3.9.1905.3 SharePointPnPPowerShellOnline

How did you install the PnP-PowerShell Cmdlets?

  • Installed through the PowerShell Gallery with Install-Module
@ghost ghost added the type:bug label Jan 8, 2021
@ghost ghost assigned erwinvanhunen and KoenZomers Jan 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants