7.2 Commands Flashcards
Displays protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP).
C:>nbtstat -a Lowercase ‘a’ used with NetBIOS name
C:>nbtstat –A Uppercase ‘A’ used with IP address
C:>nbtstat –n Lists local NetBIOS names
nbtstat
Displays protocol statistics and current TCP/IP network connections.
netstat
Powershell equivalent
Displays protocol statistics and current TCP/IP network connections
Get-NetTCPConnection
Displays a list of commands.
Net help
shows shared resources on the local machine and also enables a user to create shared resources.
Shares are folders on a local machine that have been made available by an administrator for viewing by the users on the network.
Net share
C:>net share utils=c:\tools Shares C:\toolsdirectory, naming the share utils
C:>net share utils /delete Deletes the share named utils
displays a list of resources being shared on a computer. When used without options, it displays a list of computers in the current domain or network.
Net view
C:>net view /domain: Lists computers in another domain/network
C:>net view \ Lists public shares on a remote system
command lists sessions, in the form of mapped drives, made from the workstation.
Net use
C:>net use T: \ Maps a logical T:drive to UNC which is \\sharename
Including /persistent:yes reconnectsat next logon
C:>net use T: /delete Deletes logical T:drive
lists recorded sessions made to the machine via the local server service. A successful session occurs when two computers are on the same network and the user has authenticated with credentials accepted by the server.
net session
C:>net session \
Displays details of a session
displays configuration information of the Workstation or Server service.
net config
updates the user accounts database and modifies password and logon requirements for all accounts.
net accounts
built-in command-line tool used for DNS diagnostics, queries, and zone transfers.
Forward lookup using an A record:
C:>nslookup Constitution.starfleet.local
Reverse lookup using a PTR record:
C:>nslookup 192.168.0.10
Nslookup
> ls –d Cyber.com
Zone transfer forcyber.comzone
Services can be viewed
tasklist /svc
extremely powerful command-line tool that allows administrators to query and manage Active Directory objects.
Dsquery