Avatar of Littlet5621
Littlet5621
 asked on

Exchange setting problem

We have a exchange 2010 server and it is having a spoofing issue.  After some searching i have come up with what looks like a good solution but which is running the following command to remove the option for anonymous connections.

Get-ReceiveConnector “My Internet Receive Connector” | Get-ADPermission -user “NT AUTHORITY\Anonymous Logon” | where {$_.ExtendedRights -like “ms-exch-smtp-accept-autho<wbr ></wbr>ritative-d<wbr ></wbr>omain-send<wbr ></wbr>er”} | Remove-ADPermission 

Open in new window


problem is when i try to run it i receive this error

The operation couldn't be performed because object 'rgb-exchange1.batterysource.com\My Internet ReceiveConnector' could
n't be found on 'rgb-exchange1.batterysource.com'.
    + CategoryInfo          : NotSpecified: (:) [Get-ReceiveConnector], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : 1C8D7C1,Microsoft.Exchange.Management.SystemConfigurationTasks.GetReceiveConnector

Open in new window


Any suggestions on where my problem may be.
ExchangeEmail Servers

Avatar of undefined
Last Comment
Kotteeswaran Rajendran

8/22/2022 - Mon
Justin Yeung

do a get-receiveconnector on your exchange shell console.

the identity of the connector should be like "servername\the name of the connector"

The error indicated the identity of the connector can't be found which the name doesn't match.

it doesn't accept wildcard on the parameter of identity however it can be using pipeline value
ASKER CERTIFIED SOLUTION
Kotteeswaran Rajendran

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck