using msg (aka net send) command


  1. Posts : 31
    Windows 7 Ultimate
       #1

    using msg (aka net send) command


    So basically if i do

    msg * "message"

    it displays the message to myself, but i have a wireless laptop connected to thee same router as me, is it possible to send messages to the laptop as the above command didnt work on the laptop, cheers.
      My Computer


  2. Posts : 2,913
    Windows 7 Ultimate x64 SP1
       #2

    msg only works with a server (ie: a real network, not a workgroup). You have to use a third party app to send messages.
      My Computer


  3. Posts : 2
    Windows 7 Ultimate 64bit
       #3

    You can do msg on network to Win7, Vista, and XP with powershell


    I wrote a script to make this work, but read the comments in my script because you must enable powershell remote execution on all PCs (ex. via group policy):

    @echo off
    rem --- John Neumann, 23mar2011
    rem --- Vista & Windows 7 msg.exe only works on your local PC or over network
    rem --- to Terminal Servers, but you cannot msg.exe remotely to a workstation.
    rem --- This script allows you to do like the old pre-vista "net send"
    rem --- to send to all PCs and Servers on your Active Directory domain.

    rem --- All PCs need powershell remote executions turned on and this
    rem --- could be seen as a security risk.
    rem --- Put this command into your logon script or group policy:
    rem ------ powershell enable-psremoting -force

    if '%1'=='' (
    echo Usage: netsend.bat "Thing to say to all networked PCs & Servers"
    pause
    goto :EOF
    )

    rem --- %%~NXa gets rid of leading directory type \ characters,
    rem --- doing filename only (which is PC name in this case)
    echo Your taskbar will temporarily have many minimized processes as I send messages.
    for /f "usebackq" %%a in ( `net view^|find "\\"` ) do (
    echo msg to %%~NXa
    rem --- start allows immediate successive launches, /min=minimized
    rem --- /normal=don't hog CPU, /time:86400=stay up 24 hours [default=1 minute]
    start /MIN /NORMAL "title msg to %%~NXa" powershell -command Invoke-Command -Computername %%~NXa {msg.exe /time:86400 * %1 %2 %3 %4 %5 %6 %7 %8 %9}
    )
    echo Your taskbar will temporarily have many minimized processes as I send messages.
    echo Each taskbar process will go away as messages complete.

    rem --- Done
    Last edited by johnneu; 23 Mar 2011 at 14:25.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:11.
Find Us