Below is the approach I used that is not related to Machine configuration.
Note. If the destination is on Windows Sever 2008, the encryption steps must be performed on Windows Server 2008 itself.
The following codes are executed on server A
Note: - Registration key
cd C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319 aspnet_regiis.exe -pc "MyProjectKeys" -exp
Note: - GRANTING ACCESS TO THE SERVER Only
aspnet_regiis.exe -pa "MyProjectKeys" "IIS APPPOOL\testpsreloservices" aspnet_regiis.exe -pa "MyProjectKeys" "NT AUTHORITY\NETWORK"
Exported XML file containing RSA key
aspnet_regiis.exe -px "MyProjectKeys" E:\wmapps\webroot\myservice\MyProjectKey.xml –pri
The following is added to web.config
<configProtectedData> <providers> <clear/> <remove name="RSAProtectedConfigurationProvider" /> <add name="RSAProtectedConfigurationProvider" keyContainerName="MyProjectKeys" type="System.Configuration.RsaProtectedConfigurationProvider, System.Configuration, Version=2.0.0.0,
 Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a,
 processorArchitecture=MSIL" useMachineContainer="true" /> </providers> </configProtectedData>
Encrypted
aspnet_regiis -pef "connectionStrings" "E:\wmapps\webroot\myservice" -prov "RsaProtectedConfigurationProvider"
I copied the encrypted files on server B. I copied the xml key file to server B.
A batch file was created with the following commands and Executed (for registering keys and providing access)
c: cd C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319 aspnet_regiis.exe -pi "MyProjectKeys" E:\wmapps\webroot\myservice\MyProjectKey.xml aspnet_regiis.exe -pa "MyProjectKeys" "IIS APPPOOL\testpsreloservices" aspnet_regiis.exe -pa "MyProjectKeys" "NT AUTHORITY\NETWORK"