Friday 9 December 2016

PowerShell to Change the Retention period of Usage Health and Data.




Powershell is a PowerFull tool and it always come to save us all with any requirements we have.

This post on how to change the retention period of Usage Health and Data.

Lets get started :)

This applies to SharePoint 2013 and 2016

First we check the Usage details using below Powershell Cmd.

Get-SPUsageDefinition




Now we change the retention period from 7 to 8 using below Powershell cmd


Get-SPUsageDefinition | ForEach-Object {Set-SPUsageDefinition -Identity $_.name -DaysRetained 8}

To confirm the change we will run Get-SPUsageDefinition cmd again.

 

Happy SharePointing :)

1 comment:

  1. Best eCOGRA Sportsbook Review & Welcome Bonus 2021 - CA
    Looking for an eCOGRA Sportsbook Bonus? At this eCOGRA 바카라사이트 Sportsbook review, we're talking about septcasino a 출장안마 variety of https://deccasino.com/review/merit-casino/ ECCOGRA sportsbook promotions. kadangpintar

    ReplyDelete