Topic Last Modified: 2011-05-13
If you deployed the Response Group application and you need to restore a Back End Server or a Standard Edition server, you also need to restore the Response Group configuration settings.
To restore Response Group configuration settings, you run the RgsImportExport.ps1 script. However, because Response Group contact objects reside in Active Directory Domain Services (AD DS), the script fails unless you first delete the contact objects from AD DS. Before you run the RgsImportExport.ps1 to restore the settings, you need to run another script to list the Response Group contact objects in AD DS and then delete them. The following procedure describes how to obtain and run the script, and then restore the Response Group settings.
To restore Response Group configuration settings
-
From a user account that is a member of the RTCUniversalServerAdmins group, log on to the server you are restoring.
-
Copy the Get-CsApplicationContact.ps1 script, located in the Lync Server PowerShell blog at http://go.microsoft.com/fwlink/?LinkId=210869, and then paste it into a text editor, such as Notepad or a Windows PowerShell editor. Save the script as Get-CsApplicationContact.ps1 on the server.
Note: You need to run this script locally. -
Start the Lync Server Management Shell: Click Start, click All Programs, click Microsoft Lync Server 2010, and then click Lync Server Management Shell.
-
Navigate to the folder where you saved the script, and at the command line, type:
Copy Code Import-Module .\Get-CsApplicationContact.ps1
-
To retrieve the list of Response Group contact objects associated with the pool, at the command line, type:
Copy Code Get-CsApplicationContact -OwnerUrn "urn:application:Rgs" -Filter "(MSRTCSIP-ApplicationOptions=1)" -RegistrarPool <pool FQDN>
For example:
Copy Code Get-CsApplicationContact -OwnerUrn "urn:application:Rgs" -Filter "(MSRTCSIP-ApplicationOptions=1)" -RegistrarPool "pool01.contoso.com"
-
Review the output of the Get-CsApplicationContact script to verify that the contact objects listed are the ones you want to remove. To remove the contact objects, at the command line, type:
Copy Code Get-CsApplicationContact -OwnerUrn "urn:application:Rgs" -Filter "(MSRTCSIP-ApplicationOptions=1)" -RegistrarPool <pool FQDN> -Delete
Note: You are prompted to confirm the deletion of each contact object, and you can skip any contact objects that you do not want to delete. -
To restore the configuration settings, do the following:
- If you have not already done so, install the Lync Server 2010
Resource Kit tools to save the RgsImportExport.ps1 script on
the computer. For details, see Backup and Restoration
Requirements: Tools and Permissions.
- At the command line, navigate to the folder where you saved the
script, and type:
Copy Code Import-Module .\RgsImportExport.ps1 Import-CsRgsConfiguration <service:poolFQDN> -FileName <path and file name of the backed up file at $Backup>
Copy Code Import-Module .\RgsImportExport.ps1 Import-CsRgsConfiguration ApplicationServer:pool01.contoso.com -FileName D:\RgsConfig.zip -Verbose
- If you have not already done so, install the Lync Server 2010
Resource Kit tools to save the RgsImportExport.ps1 script on
the computer. For details, see Backup and Restoration
Requirements: Tools and Permissions.