Lync 2013 Clear Persistent Chat Room Content

Hello Guys!
In Lync 2013 we have an option delete all or partial content of Persistent Chat Room! This can be easily done by powershell cmdlet Clear-CsPersistentChatRoom. Detail description of that cmdlet can be found here:
http://technet.microsoft.com/en-us/library/jj204976.aspx

And now some examples:

his example will remove all content before 1.1.2014 from PChatRoom:

Clear-CsPersistentChatRoom -Identity "contoso.com\PChatRoom" -EndDate "1/1/2014"

This example will remove all content before 1/1/2014 from all Persistech Chat Rooms:

Get-CsPersistentChatRoom | Clear-CsPersistentChatRoom -EndDate "1/1/2014" -Confirm:$False

This example will remove content older 180 days from all Persistech Chat Rooms:

Get-CsPersistentChatRoom | Clear-CsPersistentChatRoom -EndDate ([DateTime]::today.AddDays(-180)) -Confirm:$false


Komentáře

Populární příspěvky z tohoto blogu

Copy Group Membership to another user

Set up Auto Logon in Windows using PowerShell

Lync 2013 Persistent Chat Service not starting