Network Commands
Network Commands
/all - This command displays all of the configuration information for the DHCP client.
/release - This command is used to release the IP address that has been leased to the
computer.
/renew - This command is used to renew the lease on the computer's current IP address.
/flushdns - This command is used to flush the DNS resolver cache. The DNS resolver cache is
a temporary database that stores the IP addresses of websites that the
computer has recently visited.
/registerdns - This command is used to refresh all of the DHCP leases and re-register the
DNS names of all the devices on the network.
/displaydns - This command is used to display the contents of the DNS resolver cache.
/showclassid - This command displays all of the DHCP class IDs that are allowed for the
adapter. DHCP class IDs are used to group devices together and assign them
different lease times or other options.
/setclassid - This command is used to modify the DHCP class ID for the adapter.
2)ping-used to check for network errors and also connectivity issues between any two network
devices
-a - This option resolves addresses to hostnames. This means that the ping command will try
to look up the hostname of the IP address that you specify.
-n - This option specifies the number of echo requests to send. By default, the ping command
will send four echo requests.
-i TTL - This option specifies the time to live (TTL) for the echo request packets.
-v TOS - This option specifies the type of service (TOS) for the echo request packets.
-r count - This option specifies the number of hops that the echo request packets should
take before returning.
-s count - This option specifies the number of timestamps that should be included in the echo
request packets.
-j host-list - This option specifies a loose source route for the echo request packets.
-k host-list - This option specifies a strict source route for the echo request packets.
-w timeout - This option specifies the timeout value in milliseconds to wait for each r eply.
-a
-e
-n
-p
proto Shows connections for the protocol specified by proto; proto may be TCP or
UDP. If used with the -s option to display per-protocol statistics, proto may be
TCP, UDP, or IP.
-s
Displays per-protocol statistics. By default, statistics are shown for TCP, UDP and IP;
the -p option may be used to specify a subset of the default.
interval
NET FILE
[id [/CLOSE]]
NET GROUP
LOCALGROUP
NET NAME
NET PAUSE
route print
-f
Clears the routing tables of all gateway entries. If this is used in conjunction with one of
the commands, the tables are cleared prior to running the command.
-P
When used with the ADD command, makes a route persistent across boots of the
system. By default, routes are not preserved when the system is restarted. When
used with the PRINT command, displays the list of registered persistent routes.
Ignored for all other commands, which always affect the appropriate persistent
routes. This option is not supported Windows'95. command
MASK
netmask
Specifies a subnet mask value for this route entry. If not specified, it defaults to
255.255.255.255.
gateway
Specifies gateway.
interface
METRIC
computer operating systems for querying the Domain Name System (DNS) to obtain domain
name or IP address mapping or for any other specific DNS record
8)getmac-Display the Media Access Control (MAC) address and list of network protocols
associated with each address for all network cards in each computer, either locally or across a
network.
9)“netsh advfirewall firewall show rule name=all”->Displays all the rules for current
firewall
-------------------------------------------------------------------------------------------
System commands
1)cacls-Microsoft Windows NT command that allows a user to edit and display the permissions
of NTFS partitions.
2)gpresult-Display Resultant Set of Policy information for a remote user and computer.
CHKDSK C: /F
Fixing Errors /F
REGEDIT /E pathname Export the Registry (all HKLM plus current user)
database lookup