How To Get Lists With Folder Creation Enabled Or Disabled Using PnP PowerShell

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.
  1. PS:> $cred = Get-Credential      
  2. PS:> Connect-PnPOnline -Url https://<tenant>.sharepoint.com/sites/dev -Credential $cred      
  3. PS:> Get-PnPList | Select-Object Title,EnableFolderCreation   
All lists with Folder Creation property 
 
List with folder creation disabled

The below PowerShell command is used to retrieve the Lists with FolderCreation disabled for the SharePoint site.  
  1. PS:> $cred = Get-Credential        
  2. PS:> Connect-PnPOnline -Url https://<tenant>.sharepoint.com/sites/dev -Credential $cred        
  3. 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.
  1. PS:> $cred = Get-Credential        
  2. PS:> Connect-PnPOnline -Url https://<tenant>.sharepoint.com/sites/dev -Credential $cred        
  3. PS:> Get-PnPList | Select-Object Title,EnableFolderCreation | Where-Object {_.EnableFolderCreation -Eq $true }   
 
Ebook Download
View all
Learn
View all