Solved

Move receive connectors from EX2007 to Ex2013 - powershell - Powershell Version problems?

Posted on 2016-09-23
2
48 Views
Last Modified: 2016-10-01
hi Folks,
the script below should move the receive connectors from 2007 to 2013. Unfortunately i'm getting erros with Syntax.
Get-receiveconnector isn't a cmdlet........  How could i use that under Exchange 2013?


$OldServer = "srv02"
$NewServer = "srv03" 
[array]$ReceiveConnectors = Get-ReceiveConnector -Server $OldServer | Where {$_.Name -notlike "Default $($OldServer)" -and $_.Name -notlike "Client $($OldServer)"}
 
$ReceiveConnectors | foreach {

New-ReceiveConnector –TransportRole FrontEnd -Name $_.Name -RemoteIPRanges $_.RemoteIPRanges -bindings$_.Bindings -Banner $_.Banner -ChunkingEnabled $_.ChunkingEnabled -DefaultDomain$_.DefaultDomain -DeliveryStatusNotificationEnabled $_.DeliveryStatusNotificationEnabled-EightBitMimeEnabled $_.EightBitMimeEnabled -DomainSecureEnabled $_.DomainSecureEnabled-LongAddressesEnabled $_.LongAddressesEnabled -OrarEnabled $_.OrarEnabled -Comment$_.Comment -Enabled $_.Enabled -ConnectionTimeout $_.ConnectionTimeout -ConnectionInactivityTimeout $_.ConnectionInactivityTimeout -MessageRateLimit$_.MessageRateLimit -MaxInboundConnection $_.MaxInboundConnection -MaxInboundConnectionPerSource $_.MaxInboundConnectionPerSource -MaxInboundConnectionPercentagePerSource $_.MaxInboundConnectionPercentagePerSource -MaxHeaderSize $_.MaxHeaderSize -MaxHopCount $_.MaxHopCount -MaxLocalHopCount$_.MaxLocalHopCount -MaxLogonFailures $_.MaxLogonFailures -MaxMessageSize$_.MaxMessageSize -MaxProtocolErrors $_.MaxProtocolErrors -MaxRecipientsPerMessage$_.MaxRecipientsPerMessage -PermissionGroups $_.PermissionGroups -PipeliningEnabled$_.PipeLiningEnabled -ProtocolLoggingLevel $_.ProtocolLoggingLevel -RequireEHLODomain$_.RequireEHLODomain -RequireTLS $_.RequireTLS -EnableAuthGSSAPI $_.EnableAuthGSSAPI -ExtendedProtectionPolicy $_.ExtendedProtectionPolicy $_.ExtendedProtectionTlsTerminatedAtProxy -SizeEnabled $_.SizeEnabled -TarpitInterval $_.TarpitInterval -Server $NewServer -WhatIf

}

Open in new window

0
Comment
Question by:Mandy_
2 Comments
 
LVL 14

Expert Comment

by:Schnell Solutions
ID: 41812414
Just in case....

Are you executing the commands from the Exchange server 2013 server (or a computer with the Exchange tools installed) and are you also using the 'Exchange Management Shell' (EMS) console? Powershell alone cannot execute these commands unless you import Exchange modules.
0
 
LVL 15

Accepted Solution

by:
Todd Nelson earned 500 total points
ID: 41812426
I get to do this often for clients.  Try this as it may apply to your situation...

https://oddytee.wordpress.com/2016/04/06/migrate-remote-ip-addresses-to-a-new-relay-connector/
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question