Answered by:
Get Applied site policy using power-shell script.

Question
-
Hi,
I want to list out all applied site policy using power-shell script. I googled but I fail to find exact solution.
Thanks/ Siddheshwar Kohale
Monday, October 10, 2016 9:23 AM
Answers
-
Hi,
In SharePoint On-Premise also works use CSOM to achieve it. Check blog below:
https://blogs.technet.microsoft.com/tothesharepoint/2013/03/28/site-policy-in-sharepoint/
You can convert the C# code to PowerShell.
Best Regards,
Dennis
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com- Proposed as answer by Patrick_Liang Friday, October 21, 2016 9:53 AM
- Marked as answer by Patrick_Liang Friday, October 28, 2016 9:31 AM
Wednesday, October 12, 2016 6:16 AM
All replies
-
Hi,
The following articles for your reference:
How to Get the Site Policies using PowerShell in SharePoint Online
Site Policy in SharePoint
https://blogs.technet.microsoft.com/tothesharepoint/2013/03/28/site-policy-in-sharepoint/
Best Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.comTuesday, October 11, 2016 2:58 AM -
Thanks for reply but we are looking for SharePoint On-premises not for SharePoint online.
Wednesday, October 12, 2016 4:18 AM -
Hi,
In SharePoint On-Premise also works use CSOM to achieve it. Check blog below:
https://blogs.technet.microsoft.com/tothesharepoint/2013/03/28/site-policy-in-sharepoint/
You can convert the C# code to PowerShell.
Best Regards,
Dennis
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com- Proposed as answer by Patrick_Liang Friday, October 21, 2016 9:53 AM
- Marked as answer by Patrick_Liang Friday, October 28, 2016 9:31 AM
Wednesday, October 12, 2016 6:16 AM