0

How do I use the PnP PowerShell to get all of the subfolders in a folder ?

2

In order to retrieve all subfolders from folder using PowerShell, you can try something like

$folders = Get-SPOFolderItem -FolderSiteRelativeUrl "/SPDocuments" -ItemType Folder  

You can find the entire powershell script in details Working With Folders On SharePoint Using PnP PowerShell

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.