Using PowerShell Workflows to improve performance on creating Document Libraries

Occasional Visitor



I recently worked on a project to create document libraries for each folder seating on a file share. The folders totaled over 2000. Creating a document library for each was super slow calling New-PnPList . I pondered if there was other strategies to quickly create thousands of list or libs. Any insights?


I did find powershell workflows and tried using them. Performance was vastly improved but I got lots of errors in the process.

1 Reply
Do you mean to improve the performance of list creation? Not really since you have to rely on the SPO API, something you are doing with the possibility here would be to explore if the Site Scripts and Site Design options is faster here