Wednesday, April 17, 2013

Usage Data Retention in SharePoint Database - SharePoint 2013

Check the current retention policy using :
Get-SPUsageDefinition

By default it's 14 days.

To change the retention use the following script:

Set-SPUsageDefinition -Identity "Page Requests" -DaysRetained 31


Complete definition of this command can be found at :
http://technet.microsoft.com/en-us/library/ff607542.aspx


No comments: