Get list of items having a specific label #2372
Unanswered
omarmallat
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I used this example and it seems that it is what you're looking for. https://getsecureandcompliant.com/use-powershell-to-set-a-retention-label-on-an-item-in-sharepoint-online/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying set a specific label on all items in a specific folder in a SharePoint Site...
Actually most of the items already have this label.. only few items have the wrong label...
So instead of looping through all items in a folder, which is taking like 24 hours, I prefer to get first a list of the items who have wrong label, and use the command
Set-PnPListItem -List Documents -Identity $file.ID -Label $Label
so what is the right command to get a list of items who have a specific label?
currently I'm using the following
Beta Was this translation helpful? Give feedback.
All reactions