Hi,
I need to report on the firewall settings for a machine. I read that
Domain Profile is used when the machine is part of domain and Standard
Profile is used when in a workgroup. However, for W2k3 SP1 DC a Standard
profile is used instead of Domain Profile
(
http://support.microsoft.com/kb/555381/en-us).
Is there a way to programmatically find out which profile is being used for
the firewall?
I had tried using the MS logic of 'Network Determination' from
http://www.microsoft.com/technet/com...uy/cg0504.mspx
In this case if I change the value of
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Group
Policy\History\NetworkName
manually still it is not reflected when the firewall UI is launched.
Is there a programmatic way of finding the profile being used?
Or I have to go with the assumption that a DC will always use Standard
Profile?
This is required because based on the profile I will read the registry
entries. (I want to avoid using any firewall APIs for reading the
configuration and read them directly from registry)
Thanks in advance.
Regards,
Ajey