PUBLISH 09-Sep-2018 LAST UPDATE: 09-Sep-2018
Below are some commands you will find interesting in performing basic network discovery, enable DHCP server and DNS logging
Basic Network Discovery:
C:\> net view /all
C:\> net view \\
Basic ping scan and write output to file:
C:\> for /L %I in (1,1,254) do ping -w 30 -n 1 192.168.l.%I | find "Reply" >> .txt
Enable DHCP server logging:
C:\> reg add HKLM\System\CurrentControlSet\Services\DhcpServer\Parameters /v ActivityLogFlag /t REG_DWORD /d 1
Default DHCP Location Windows 2003/2008/2012:
C:\> %windir%\System32\Dhcp
Default DNS location Windows 2003:
C:\> %SystemRoot%\System32\Dns
Default DNS location Windows 2008:
C:\> %SystemRoot%\System32\Winevt\Logs\DNS Server.evtx
Default location of enhanced DNS Windows 2012 R2:
C:\> %SystemRoot%\System32\Winevt\Logs\MicrosoftWindows-DNSServer%4Analytical.etl
Enable DNS Logging:
C:\> DNSCmd /config /logLevel 0x8100F331
Set log location:
C:\> DNSCmd /config /LogFilePath
Set size of log file:
C:\> DNSCmd /config /logfilemaxsize 0xffffffff
CONTACT US