#1. show all network configuration.
c:\windows>netsh interface ip show config
Configuration for interface "Local Area Connection" DHCP enabled: Yes IP Address: 192.168.0.8 Subnet Prefix: 192.168.0.0/24 (mask 255.255.255.0) Default Gateway: 192.168.0.1 Gateway Metric: 0 InterfaceMetric: 20 DNS servers configured through DHCP: 192.168.0.1 Register with which suffix: Primary only WINS servers configured through DHCP: None Configuration for interface "Loopback Pseudo-Interface 1" DHCP enabled: No IP Address: 127.0.0.1 Subnet Prefix: 127.0.0.0/8 (mask 255.0.0.0) InterfaceMetric: 50 Statically Configured DNS Servers: None Register with which suffix: Primary only Statically Configured WINS Servers: None#2. show firewall configuration on your PC.
c:\windows>netsh firewall show state
Firewall status: ------------------------------------------------------------------- Profile = Standard Operational mode = Enable Exception mode = Enable Multicast/broadcast response mode = Enable Notification mode = Enable Group policy version = Windows Firewall Remote admin mode = Disable Ports currently open on all network interfaces: Port Protocol Version Program ------------------------------------------------------------------- No ports are currently open on all network interfaces. IMPORTANT: Command executed successfully. However, "netsh firewall" is deprecated; use "netsh advfirewall firewall" instead. For more information on using "netsh advfirewall firewall" commands instead of "netsh firewall", see KB article 947709 at http://go.microsoft.com/fwlink/?linkid=121488 .
#3. netsh helper
c:\windows>netsh show helper
Helper GUID DLL Filename Command -------------------------------------- ------------ ------- {02BC1F81-D927-4EC5-8CBC-8DD65E3E38E8} AUTHFWCFG.DLL advfirewall {FB10CBCA-5430-46CE-B732-079B4E23BE24} AUTHFWCFG.DLL consec {35342B49-83B4-4FCC-A90D-278533D5BEA2} AUTHFWCFG.DLL firewall {4BD827F7-1E83-462D-B893-F33A80C5DE1D} AUTHFWCFG.DLL mainmode {4D0FEFCB-8C3E-4CDE-B39B-325933727297} AUTHFWCFG.DLL monitor {A31CB05A-1213-4F4E-B420-0EE908B896CB} PEERDISTSH.DLL branchcache {555EA58E-72B1-4F0A-9055-779D0F5400B2} PEERDISTSH.DLL smb {00770721-44EA-11D5-93BA-00B0D022DD1F} HNETMON.DLL bridge {6DC31EC5-3583-4901-9E28-37C28113656A} DHCPCMONITOR.DLL dhcpclient {8A6D23B3-0AF2-4101-BC6E-8114B325FE17} NETIOHLP.DLL dnsclient {8B3A0D7F-1F30-4402-B753-C4B2C7607C97} FWCFG.DLL firewall {44F3288B-DBFF-4B31-A86E-633F50D706B3} NSHHTTP.DLL http {0705ECA1-7AAC-11D2-89DC-006008B0E5B9} IFMON.DLL interface {1C151866-F35B-4780-8CD2-E1924E9F03E1} NETIOHLP.DLL 6to4 {97C192DB-A774-43E6-BE78-1FABD795EEAB} NETIOHLP.DLL httpstunnel {725588AC-7A11-4220-A121-C92C915E8B73} NETIOHLP.DLL ipv4 {500F32FD-7064-476B-8FD6-2171EA46428F} NETIOHLP.DLL ipv6 ....... ....... ....... (more)#4. Dispaly/Gathering info.
Data GatheringCollapse this tableExpand this tableCommand Description show allowedprogram Displays the allowed programs. show config ,Displays the detailed local configuration information. show currentprofile ,Displays the current profile. show icmpsetting ,Displays the ICMP settings. show logging ,Displays the logging settings. show opmode ,Displays the operational mode. show portopening ,Displays the excepted ports. show service ,Displays the services. show state ,Displays the current state information. show notifications ,Displays the current settings for notifications.example:
> netsh firewall show allowedprogram
> netsh firewall show config
> netsh firewall show logging
No comments:
Post a Comment