I’ve created a simple Powershell script to run daily to backup Lync configuration with the export-csconfiguration command:
cd $env:UserProfile
Import-Module 'C:\Program Files\Common Files\Microsoft Lync Server 2010\Modules\Lync\Lync.psd1'
$filename = "d:\backup\{0:yyyy.MM.dd-HH.mm}-config.zip" -f (Get-Date)
export-csconfiguration -Filename $filename -Force:$True
For example, put the above code into a document called d:\backup\backup.ps1 and then create a scheduled task to execute the command on a daily basis:
powershell -command d:\Backup\backup.ps1
This can run in the SYSTEM context. Simples!
Related Articles
3 users responded in this post
What about backing up the users contact lists? are those stored in SQL or in the CS Config?
I believe these are stored in the RTC database.
Hi- Do you have a PS script that can be scheduled as a task, and will export the archive (export-csarchivingdata)? Ideally, I would like to export the archive on a regular basis, automatically change the file extensions from *.eml to *.mht, then backup the output. But if I can figure out any part of this schenerio, I’d be happy.
Leave A Reply