Adding the Lync Import-CsRgsConfiguration and Export-CSRgsConfiguration cmdlets to your Lync Management Shell

Sorry I missed a week. L I’ll make up for it with multiple posts this week. I promise.

First post isn’t a major topic, but it does address a minor annoyance of mine: having to run a PowerShell script to add the Import-CSRgsConfiguration and Export-CSRgsConfiguration cmdlets. When I fire up the Lync 2010 Management Shell, I want all the cmdlets I need available to me.

So here’s the fix:

  1. If you haven’t already done so, download and install the Lync 2010 Resource Kit tools. Assuming that you likely have put them on a Lync server (and in the default location), you should have a folder C:\Program Files\Microsoft Lync Server 2010\Reskit.
  2. From that folder, find the PowerShell script that adds the Response Group Service import and export cmdlets. It is cleverly named RgsImportExport.ps1. Copy that file.
  3. Navigate to the Lync Management Shell module directory, C:\Program Files\Common Files\Microsoft Lync Server 2010\Modules\Lync. Paste the RgsImportExport.ps1 file into that folder.
  4. In that same directory there should be a file named Lync.psd1. Find that file and open it for editing.
  5. Find the “Nested Modules” line and add ,”RgsImportExport.ps1″ to the end of that line. When finished the line should look like this:
    NestedModules=”Microsoft.Rtc.Management”,”Microsoft.Rtc.Rgs.Management”,”init.ps1″,”RgsImportExport.ps1″
  6. Save the changes and close the file.
  7. From here on out, when you open the Lync Management Shell on the computer to which you’ve done this, the Import-CSRgsConfiguration and Export-CSRgsConfiguration cmdlets should be loaded and at your disposal.

One thing to note, if you want the cmdlets available on multiple Lync servers you will need to do the steps above on each server.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s