21-01-2007, 20:43
|
|
\dev\null
|
|
חבר מתאריך: 08.11.02
הודעות: 11,379
|
|
עדיף לך לעבוד עם NETSH כי התוצאה מידית ואל דורשת איתחול
ציטוט:
Using the Netsh Utility to Configure Windows Firewall
If you do not have control panel access, but if your run-time image has access to netsh shell, you can use netsh to change Windows Firewall settings, for example:
netsh>Firewall
To check the current status of the firewall:
netsh firewall>show state
In the following command, the first parameter sets the state of the firewall. To enable the firewall, use the enable argument; to disable the firewall, use the disable argument. The second parameter specifies whether to allow or deny exceptions. To allow exceptions, specify enable; to disable exceptions, specify disable. You can also specify either or both of the interface and profile.
netsh firewall>set opmode [enable/disable] [enable/disable]
The following command is used to enable or disable notification when a program is blocked. To enable notification when a program is blocked, use the enable switch. To disable notification when a program is blocked, use the disable switch.
netsh firewall>set notifications [enable/disable]
You can also change Internet Control Message Protocol (ICMP) settings and create lists of port openings and authorized applications and services by using the following netsh commands. For example, to change ICMP settings:
netsh firewall>set icmpsetting
To create authorized applications:
netsh firewall>set service
To create port openings:
netsh firewall>set portopening
For more information about the command syntax for netsh, see the netsh shell documentation.
|
מהלינק שניתן למעלה
|