Link to home
Start Free TrialLog in
Avatar of joein610
joein610

asked on

Disable IpBlock/AllowListProviders from EMS

Experts,

I am trying to disable IP allow and block list providers from the shell.
 
Set-IPBlockListProvider -Enabled $false
Set-IPAllowListProvider -Enabled $false

The above is per the tech net article with syntax explained, found http://goo.gl/goy8E.  Although every time i try to disable i  get the following:
 
cmdlet Set-IPBlockListProvider at command pipeline position 1
Supply values for the following parameters:
Identity:

I cant for the life of me find any literature which explains what should be done next.  Any help would be greatly appreciated.
Avatar of Manpreet SIngh Khatra
Manpreet SIngh Khatra
Flag of India image

First run the below commands to get the Name

Get-IPAllowListProvider
Get-IPBlockListProvider

Once done you will have the identity :)

- Rancy
Brings me to the question, are they set to True in first place.

Get-IPBlockListProvider | FT Identity,Enabled
Get-IPAllowListProvider | FT Identity,Enabled

AND if you don't need it run the following cmdlet

Get-IPBlockListProvider | Remove-IPBlockListProvider
Get-IPAllowListProvider | Remove-IPAllowListProvider

Run this and provide output please

Regards,
Exchange_Geek
You're seeing that message because the command actually needs to know exactly which object in the IP Block List you want to enable/disable! "Identity" refers to a generic Powershell argument which is present on just about any of the cmdlets (like Get-IPBlockListProvider) and which allows you to uniquely identify an object to apply the results of your operation to.

You can use Get-IPBlockListProvider (and Get-IPAllowListProvider) to see all of those configured. The entry under the Name column should then be passed to the Set-IPXXXListProvider command to modify an individual entry.

For example:

Suppose Get-IPAllowListProvider returns a single entry with a "Name" attribute. You would then run Set-IPAllowListProvider -Identity <The Name Goes Here> -Enabled $false  (and other arguments go here, depending on the nature of the command you're running).

Alternatively, you can use the pipeline to pass the results of executing one command along to the input of another command. This is good if you want to perform changes en masse. For example, to disable ALL IPAllowListProviders, you would use:

Get-IPAllowListProvider | Set-IPAllowListProvider -Enabled $false

The latter gets all of the providers using the first command, then pipes (the '|' symbol) that output not to the console but along to the Set-IPAllowListProvider command. In this case, it would iterate over each entry in the result set in turn, applying the changes you specified to each entry (-Enabled $false). The results you see are output by the Set-IPAllowListProvider cmdlet, as its output doesn't get piped anywhere.

-Matt
Seems we all were eager to assist, matter of 3-4 minutes and such wonderful replies.

Regards,
Exchange_Geek
Avatar of joein610
joein610

ASKER

Geek,

Ran the commands you suggested and refreshed my EMC. My goal is to diable all antispam tools with the exception of recipient filtering.  

Set-ContentFilterConfig -Enabled $false
Set-SenderFilterConfig -Enabled $false
Set-SenderIDConfig -Enabled $false
Set-SenderReputationConfig -Enabled $false
Set-IPAllowListConfig -Enabled $false
Set-IPBlockListConfig -Enabled $false

The above has worked for all except these last two im having the issue with.  Below is your screen with output


User generated image
Also, I apologize for forgetting to mention that there are no entries in either list.
ASKER CERTIFIED SOLUTION
Avatar of tigermatt
tigermatt
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Matt,

Thanks and worked like a charm.  And thank you to everyone else for your quick and well written responses.