List the current log on session(s):
List the current log on session(s) on the remote desktop computer:
C:\>quser /SERVER: xx.xx.xx.xxx
To log off session listed in the previous step, use the following command. Here I am trying to log off the session 0.
C:\> logoff /SERVER:xx.xx.xx.xxx 0 /V
The port numbers are divided into three ranges: the Well Known Ports,
the Registered Ports, and the Dynamic and/or Private Ports.
The range for assigned ports managed by the IANA is 0-1023.
Port Assignments can be found here:
Nbtstat is designed to help troubleshoot NetBIOS name resolution problems. When a network is functioning normally, NetBIOS over TCP/IP (NetBT) resolves NetBIOS names to IP addresses. It does this through several options for NetBIOS name resolution, including local cache lookup, WINS server query, broadcast, LMHOSTS lookup, Hosts lookup, and DNS server query.
The nbtstat – a < name > or nbtstat – a < IP address > command performs a NetBIOS adapter status command on the computer name specified by < name >.
The nbtstat – c option shows the contents of the NetBIOS name cache, which contains NetBIOS name-to-IP address mappings.
nbtstat -n displays the names that have been registered locally on the system by NetBIOS applications such as the server and redirector.