Hi jherschel7,
I am trying below script for applying labels. Under settings Label is getting applied in drop down but Check box (Apply label to existing items in the library.) is not getting selected.
Also I used in script -BlockDeletion $true -BlockEdit $true, it is not applying. After below script if I tried to get Label then still it shows False as Output:
The label '30 Years Delete' is set to the specified list or library.
Block deletion: False
Block editing: False
Script I used:
$siteURL=Sample Site"
Connect-PnPOnline -Url $siteURL -UseWebLogin
Get-PnPLabel -List "InputList" -Verbose
Set-PnPLabel -List "InputList" -Label "30 Years Delete" -SyncToItems $true -BlockDeletion $true -BlockEdit $true
Kindly let me know do I need to add any commands.