Hi, can you please write a script that adds an external IP to and existing firewall rule.
The PowerShell is below:
Get-NetFirewallRule -displayName xxxxxxx | Set-NetFirewallRule -RemoteAddress xxx.xxx.xxx.xxx
Cheers James.
Hi, can you please write a script that adds an external IP to and existing firewall rule.
The PowerShell is below:
Get-NetFirewallRule -displayName xxxxxxx | Set-NetFirewallRule -RemoteAddress xxx.xxx.xxx.xxx
Cheers James.
Hi @dittoit,
Please refer this script for adding external IP address to existing firewall rule,
https://scripts.comodo.com/frontend/web/topic/add-external-ip-address-to-existing-firewall-rule
Thank you.
Hi, failed see below?
Traceback (most recent call last):
File “<string>”, line 12, in <module>
TypeError: not all arguments converted during string formatting
Hi @dittoit
Refer the modified script for adding the external IP address to existing firewall Rule.And also provide the feedback to us,
https://scripts.comodo.com/frontend/web/topic/add-external-ip-address-to-existing-firewall-rule
Thank you
Ok, I don’t think the script is correct,
I need to be able to say what IP I want added to the rule not the script GET the external IP.
Cheers James.
Ok, I don’t think the script is correct,
I need to be able to say what IP I want added to the rule not the script GET the external IP.
Cheers James.
Hi, @dittoit
Refer the following script for adding IP address to existing firewall name.Provide the feedback to us.
https://scripts.comodo.com/frontend/web/topic/add-ip-address-to-existing-firewall-rule
Thank you.
Works perfectly !!! great work thank you !!