Using PowerShell for Configuration Tasks

For administrators who prefer to do all their configuration tasks through PowerShell, Lync Server 2010 supports the capability to read and modify the archive policy and archive configuration through cmdlets:

Get-CsArchivingConfiguration Identity                   :Global EnableArchiving            :ImAndWebConf EnablePurging        :True PurgeExportedArchivesOnly:False BlockOnArchiveFailure      :True KeepArchivingDataForDays   :14

These cmdlets can be modified through Set-CsArchivingConfiguration. For example, the following cmdlet updates the archive retention period to 15 days.

Set-CsArchivingConfiguration –Identity Global –KeepArchivingDataForDays 15

For the policy, use Get-CsArchivingPolicy:

Identity                   :Global ...

Get Microsoft® Lync Server 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.