+234 (803) 533-6234
Views (211) Comment (0)

PUBLISH 09-Sep-2018 LAST UPDATE: 09-Sep-2018

Windows Network Discovery Commands

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

Related Post

Linux Network Commands

Linux Network Commands You will find below some very useful network commands in Linux that will help make you task...
11 months

Scanning and Vulnerabilities...

Scanning and Vulnerabilites Here are somelist of NMAP commands for scanning an IP address or range of IPs for...
11 months

PowerShell Commands

PowerShell Commands Some interesting commands in...
11 months

Basic Authentication Using...

The steps below will clone a website and redirect after 3 seconds to another page requiring basic authentication....
12 months

HTML Beef Hook With Embedded...

This is a simple beef hook with an embedded frame.  
12 months

Big News For Blockchain Google...

Aside from actual cryptocurrencies, Google is very pro blockchain. This is obviously a given, as a...
12 months
Leave a comment


Message Us

Get In Touch

+243(803) 533-6234