Find retention policies where items get deleted or moved to recycle bin using PowerShell
-
12-01-2021 - |
質問
Is there a way to use PowerShell to look through SP2010 to produce a report listing all the locations a retention policy is set that has the property to either delete the item or move items to recycle bin.
解決
List policy xml is stored in the RetentionPolicy.xml file in the root folder of the list (Forms/RetentionPolicy.Xml). An idea, iterating lists and reading RetentionPolicy.xml file for the list, check the action.
You can read the following thread to learn how to get RetentionPolicy.xml file:
所属していません sharepoint.stackexchange