SOLVED

Find IP in receive connector via Powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-1389212%22%20slang%3D%22en-US%22%3EFind%20IP%20in%20receive%20connector%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1389212%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20everyone%20is%20staying%20safe.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20wondering%20if%20someone%20could%20possibly%20help%20me%20with%20the%20subject%20mentioned.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20using%20the%20command%20but%20it%20returns%20no%20results%20and%20I%20know%20that%20the%20particular%20IP%20I%20am%20querying%20is%20in%20one%20of%20the%20receive%20connectors.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGet-ReceiveConnector%20%7C%20fl%20Name%2C%20remoteipranges%20%7C%20select-Object%20where%20%7B%24_RemoteIPRanges%20-eq%20%2210.10.16.119%22%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1389212%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1390635%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20IP%20in%20receive%20connector%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1390635%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F119208%22%20target%3D%22_blank%22%3E%40Navishkar%20Sadheo%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYour%20command%20was%20nearly%20right%20-%20I've%20adjusted%20it%20to%20make%20it%20work%20on%20one%20of%20my%20Exchange%20boxes%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EGet-ReceiveConnector%20%7C%20where%20RemoteIPRanges%20-eq%20%2210.10.16.119%22%20%7C%20ft%20name%2C%20RemoteIPRanges%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps%2C%3C%2FP%3E%3CP%3EMark%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1390649%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20IP%20in%20receive%20connector%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1390649%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F383653%22%20target%3D%22_blank%22%3E%40HidMov%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou.....my%20friend....are%20awesome!!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20man%3C%2FP%3E%3CP%3E%23appreciate%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hi All

 

Hope everyone is staying safe.

 

I was wondering if someone could possibly help me with the subject mentioned.

 

I tried using the command but it returns no results and I know that the particular IP I am querying is in one of the receive connectors.

 

Get-ReceiveConnector | fl Name, remoteipranges | select-Object where {$_RemoteIPRanges -eq "10.10.16.119"}

 

2 Replies
Highlighted
Best Response confirmed by Navishkar Sadheo (Frequent Contributor)
Solution

Hi @Navishkar Sadheo

 

Your command was nearly right - I've adjusted it to make it work on one of my Exchange boxes

 

Get-ReceiveConnector | where RemoteIPRanges -eq "10.10.16.119" | ft name, RemoteIPRanges

 

Hope this helps,

Mark

Highlighted

@HidMov 

 

You.....my friend....are awesome!!

 

Thanks man

#appreciate