elmurado wrote:
> Thanks Torgeir. Is there any way of 'grabbing' those settings?
> ie do they exist somewhere in a form which can be captured.
You can display the settings like this (in a command prompt):
netsh.exe firewall show config
For a more detailed listing:
netsh.exe firewall show config verbose = ENABLE
To a file:
netsh.exe firewall show config verbose = ENABLE >fw_cfg.txt
> Another question, is there a way of using runas on the firewall
> or is it impossible because it is a service?
It might work to run netsh.exe with runas.
For the GUI configuration, this might work with runas:
control.exe firewall.cpl
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx