Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to chat between two computers on same LAN using the command prompt in windows, If so, how to do that?

share|improve this question

There are a few commands built into Windows, but they aren't exactly ... convenient. Also, only sending messages is through command-line; received ones are displayed as annoying popups.

net send exists in all versions up to XP but is removed in Vista and 7. It uses NetBIOS.

net send <targetname> <text>

<targetname> can be either a user name or a computer.

net send tim Hi!

To receive messages you need to start the Messenger service.

sc config Messenger start= demand      (or auto)
sc start Messenger

msg exists in XP Pro, and probably all Windows versions with Terminal Services.

msg /server <hostname> <targetname> <text>

Here <hostname> is the computer's name, <targetname> can be the receiving user's Windows username (but can be a * or a session name or session ID from qwinsta /server <hostname>), and <text> is obvious.

msg /server tims-pc tim Hi!

msg uses Terminal Services RPC and requires authentication. If you can receive an "Access Denied" message, run this on the remote computer:

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v AllowRemoteRPC /t REG_DWORD /d 1 /f
share|improve this answer
So, we can't use any commands in windows 7 to send message via command prompt in LAN? – Anish Apr 23 '11 at 13:00
@Anish: Try msg – grawity Apr 23 '11 at 13:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .