collect and check Network Configuration


This batch file is a mere collectionb of commands that collect network configuration settings on a Windows server, and write them to a file. This would be useful in situations such as


@echo OFF
ECHO checking network configuration

REM netdiag		_ saves log in current directory
Netdiag


ECHO exporting DNS settings

IF EXIST %systemroot%\system32\dns\DNS_zone.txt DEL %systemroot%\system32\dns\DNS_zone.txt
dnscmd /ZoneExport kicks.local DNS_zone.txt
dnscmd SRV01 /EnumRecords kicks.local > DNSRecords.txt
COPY %systemroot%\system32\dns\DNS_zone.txt


Echo.
Echo exporting DHCP configuration (and WINS)

netsh DHCP server dump > dhcpconf.txt
netsh WINS server dump > winsconf.txt


REM COLLECT GENERAL NETWORK SETTINGS
ipconfig /ALL 	> ipconf.txt
netsh dump > netdump_all.txt

ECHO done. results saved in current directory:  
DIR /L /B *.txt


		

Koen Noens
june 7, 2005