In this blog, we are going to see how to get the lists/libraries with folder creation enabled or disabled using PnP PowerShell.
All lists with Folder Creation Property
The below PowerShell command is used to retrieve and print the FolderCreation property for all the lists and libraries from the SharePoint site.
- PS:> $cred = Get-Credential
- PS:> Connect-PnPOnline -Url https:
- PS:> Get-PnPList | Select-Object Title,EnableFolderCreation
List with folder creation disabled
The below PowerShell command is used to retrieve the Lists with FolderCreation disabled for the SharePoint site.
- PS:> $cred = Get-Credential
- PS:> Connect-PnPOnline -Url https:
- PS:> Get-PnPList | Select-Object Title,EnableFolderCreation | Where-Object {_.EnableFolderCreation -Eq $false }
Lists with folder creation enabled
The below PowerShell command is used to retrieve the lists and libraries with FolderCreation enabled for the SharePoint site.
- PS:> $cred = Get-Credential
- PS:> Connect-PnPOnline -Url https:
- PS:> Get-PnPList | Select-Object Title,EnableFolderCreation | Where-Object {_.EnableFolderCreation -Eq $true }