Script to list contents of Sharepoint Site Collection and apply retention label to folders

Job ID: 37094600

Budget: $30 – $250 USD

I need 2 scripts:
1. Script needs to list the content/file structure of a SharePoint online site collection, showing the subsites with document libraries, folders, subfolders and sub subfolders with their URL and write it to a csv file
2. This script can use the csv from the first script, I'll to add retention labels to be applied in an extra column in the csv file and the script should apply the different retention labels to the specified document libraries, folders, sub folders and sub subfolders.
Related categories: Sharepoint Powershell Scripting