Introduction
This post explains how to apply a label at list/library level in SharePoint Online by using Client Side Object Model in PowerShell.
This script will help save us developers a lot of time in getting all the lists/libraries from a individual Site Colletion or subsites. So, here is the script.
- Copy the below code to a .ps1 file.
- Run the .ps1 file on the SharePoint PowerShell modules.
- Configure the input parameters.
Source Code
Execute the program. Once it is executed successfully, you can see the label applied in the SharePoint List/Library.