In my SP 2013 web application I am having 40+ Record Center Site Collections.For configuring RCs I need to create Send To Connectionand apply the values through the Central Admin UI.

Since its a tedious task and I have to create multiple Send To Connections, I am looking for the PowerShell script for performing the same.Has anyone done this before?

What's the API in PowerShell for implementing this feature?


This blog explains how ... and provides powershell script to implement


Am posting the contents of the blog:

Using PowerShell to Create Multiple Send to Connections In SharePoint 2010

So having come across a scenario where I was asked to create multiple send to connections for a Records centre design, I was sure it was possible to use PowerShell to help us out here yet again! Now I had seen basic PowerShell scripts to create a single send to rule, so by tweaking this slightly to use a source XML file containing all of the values for my multiple send to rules you can create as many as required with minimal administrative effort. The PowerShell and XML format are below.


      [xml]$SendTos = gc $pwd\sendtorule.xml
       $SendTos.SendTos | % {
        $webapp = Get-SPWebApplication 

        $_.SendTo | % {
                        $SendTo = $_ 

        $officialFileHostTemp = $webapp.OfficialFileHosts | ? { 
                          $_.OfficialFileName -eq 

         if($officialFileHostTemp -eq $null)
      [Microsoft.SharePoint.SPOfficialFileHost] $officialFileHost = 
  $officialFileHost.Action = 
  $officialFileHost.Explanation = $SendTo.Explanation
  $officialFileHost.OfficialFileName = $SendTo.OfficialFileName
  $officialFileHost.OfficialFileUrl = $url+$SendTo.OfficialFileUrl
  $officialFileHost.ShowOnSendToMenu = 
  $officialFileHostTemp = $null

  XML Structure

     <SendTos WebApplicationUrl="http://WebAppURL">
                       <Explanation>Move the HR Records site 
                       <OfficialFileName>Move to HR 
            <Explanation>Move the IT Records site 
         <OfficialFileName>Move to IT Records</OfficialFileName>
| improve this answer | |
  • 2
    Please quote the main points of the article as the links tend to go down. – Paul Strupeikis Feb 26 '16 at 15:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.