Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.
This repository was 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

@ghost

Description

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions