Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

we have a small network of < 10 machines connected together with a DSL router. i can see the list of machines in 'network' in explorer (windows 7). i tried using the msg command,set the AllowRemoteRPC key in registry for my machine, ran the command prompt with admin privilages as directed here MSG command in Windows 7

am i heading in the wrong direction? does the 'msg' command work only for windows domain controller logins? is there any other way, without installing additional programs , to send messages to machines connected in LAN?

share|improve this question
add comment

migrated from superuser.com Mar 26 '11 at 19:17

This question came from our site for computer enthusiasts and power users.

2 Answers

up vote 1 down vote accepted

msg works on all systems with Terminal Services (which is part of Windows since XP). However, it can only send messages to a single computer, using msg /server:hostname * Hi!

  • You may need to reboot after changing AllowRemoteRPC.

  • Also test if it works using qwinsta /server:hostname, which uses the same RPC.

  • Use this script to call msg for each computer:

    @echo off
    setlocal enabledelayedexpansion
    for /f "tokens=1" %%a in ('net view') do (
        set host=%%a
        if "!host:~0,2!"=="\\" (
            msg /server !host:~2! * < message.txt
        )
    )
    
  • The * in msg examples above can also be a session name as displayed by qwinsta (use "console" to refer to the physically attached monitor/keyboard), or an user name.


Previous versions of Windows had a NetBIOS-based "Messenger Service", which could send messages to a user, computer, or workgroup. However, this has been removed from Windows Vista and 7. So any suggestions involving "net send" should be ignored.

share|improve this answer
add comment

I think the command you want is "net send". I haven't had to use it in years so hopefully it still works as I remember. If you want to hit everyone with it, you'd do something like net send /users Your message here.

share|improve this answer
    
The Messenger Service does not exist in Windows 7. –  grawity Mar 26 '11 at 19:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.