Windows Firewall is included with Windows XP with Service Pack 2 and later versions of the Windows operating system. When you are configuring Windows systems, you’ll often want to determine whether Windows Firewall is enabled or disabled and then either enable or disable the firewall as appropriate. You might also want to determine what firewall ports are open or closed and then either open or close ports as appropriate. In PowerShell, you can easily perform these basic firewall management tasks.
Windows Firewall supports three types of profiles:
Domain. The profile applicable when a computer is connected to a domain.
Private. The profile applicable when a computer is a member ...