A net messenger script for Windows 7/2008

This script helps network administrators with Windows 7 clients and Windows 2008 servers to use the MSG utility like the old "NET SEND" command. You can send a message to a specific computer, to a list of computers or even the entire network, if it is domain-based.

 
 
 
 
 
4.6 Star
(52)
50,275 times
Add to favorites
12/17/2011
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Number of letters/characters in message
    3 Posts | Last post April 03, 2019
    • Hi Pedro can I change the length or number of letters/characters in the message? 
    • As far as I know no, you can't. It uses the Operating System windows. It may be configurable, but I need to see if there is a way to do it.
    • Hi, I'm vb programmer and I need to send messages to the other user through my application in vb.
      I know about PSEXE to send messages which works great, but this is need to be administrator.
  • I'm not administrator, Could this script works for me?
    2 Posts | Last post October 06, 2017
    • Hi, I'm vb programmer and I need to send messages to the other user through my application in vb.
      I know about PSEXE to send messages which works great, but this is need to be administrator. I'm looking for another tool to be able to make the users of the application send text message from user to another user when trigger event.
      we use Window 7.  I would appreciate your help. 
      Thank you so much .
      
    • You don't necessarilly need to be as administrator do send the message. You only need to be in the "Remote Desktop Users" group of the remote machine to make it work.
  • I'm not administrator, this script still works for me
    1 Posts | Last post May 19, 2016
    • Hi, I'm vb programmer and I need to send messages to the other user through my application in vb.
      I know about PSEXE to send messages which works great, but this is need to be administrator. I'm looking for another tool to be able to make the users of the application send text message from user to another user when trigger event.
      we use Window 7.  I would appreciate your help. 
      Thank you so much .
       
  • Great contribution
    2 Posts | Last post August 22, 2015
    • Great contribution
    • These Professional Transporters Moving And Relocation Needs Please visit for More information about  Packers and movers bangalore@ http://professionalmovers.in
      Packers and Movers Noida@ http://professionalmovers.in/packers-and-movers-in-nodia/
      Packers and Movers Bangalore@ http://professionalmovers.in/packers-and-movers-in-bangalore/
      Packers and Movers Gurgaon@ http://professionalmovers.in/packers-and-movers-in-gurgaon/
      Packers and Movers delhi@ http://professionalmovers.in/packers-and-movers-in-delhi/ 
      
  • How to change script to allow more characters per message
    1 Posts | Last post May 21, 2015
    • Hi Pedro can I change the length or number of letters/characters in the message? It only allows for a certain amount of letters/characters.
  • list of coptuters does not work
    2 Posts | Last post April 29, 2015
    • Hi Pedro
      
      Great tool, working OK with switch * or single computer name
      
      BUT when i create list of computers
      I have regular format
      computer1
      computer2
      ...
      
      nothing happens?!?
      
      After entering message I enter file location (d:\PC.txt) but message is not send to those computers....
      
      any idea ?
      
      best regards
      Aljosa
    • I think there is something to do with the text editor used to create the file. Use Microsoft's Notepad instead of any other editor to create the file and test to see if it works.
      PS: if this is the case, there might be something wrong with the carriage return in the end of each line.
  • Can you set a time for message recall
    5 Posts | Last post September 07, 2014
    • I'm not a programmer, but I would like to use your script to display a message for a specified time period. Is this possible with your current script? If not how do I modify?
      
      Thanks in advance.
    • No. The script is not ready to make that. It only works interactively by now. Anyway, the message appears until the user press the OK buttom. There is a way to make a dialog box to appear to a user for a specified period in Vbscript but this would not work in a remote machine. Remember that the script uses the MSG.exe command behind. Vbscript is only a vehicle to help with the task of sending the message to many computers.
    • WHAT WOULD BE YOUR APPLICATION IN AN INTEGRATED
    • Hi,
      
      I only saw your message now, so here are the tips to help you adjust the script for your needs:
      
      You can modify these lines so the user will have to click OK on the popup message:
      
      Line 85:   strCommand = objShell.Run ("cmd /c msg * /server:" & strComputer & " /w " & strMessage,0,True)	   
      Line 124:  strCommand = objShell.Run ("cmd /c msg * /server:" & strComputers(intCounter) & " /w " & strMessage,0,True)
      Line 142:  strCommand = objShell.Run("cmd /c msg * /server:" & strComputer & " /w " & strMessage,0,True)
      
      If you see, the only difference is the insertion of the /w option after strComputer & "
      
      Alternatively, you can increase the time (default is 1 minute) so the message will stay on the screen for more time (in the example below, the message stays for 6 minutes, or 360 seconds):
      
      Line 85:   strCommand = objShell.Run ("cmd /c msg * /server:" & strComputer & " /time:360 " & strMessage,0,True)	   
      Line 124:  strCommand = objShell.Run ("cmd /c msg * /server:" & strComputers(intCounter) & " /time:360 " & strMessage,0,True)
      Line 142:  strCommand = objShell.Run("cmd /c msg * /server:" & strComputer & " /time:360 " & strMessage,0,True)
      
      The modification in this case is in the same place, but instead of using /w, you will use /time:<timeinseconds> option.
      
      
      
    • Thanks for sharing Pedro.
  • Time that message stays on screen
    3 Posts | Last post August 15, 2014
    • Pedro, Thanks for a great script..! I've been lo My question is when the message is sent successfully to either the local host as a test, or to a remote desktop PC, once the message pops open it only stays on the screen for 1 minute and then goes away.
      
      I thought I saw in your blog where it stated that it waits for a reponse from the user, however that doesnt appear to be the case? Any suggestions?
    • This code is great.  We are also having the same issue with the message disappearing after about a minute.  Not the best with code, and can't quite tell where to make the change.
    • Hi,
      
      I only saw your message now, so here are the tips to help you adjust the script for your needs:
      
      You can modify these lines so the user will have to click OK on the popup message:
      
      Line 85:   strCommand = objShell.Run ("cmd /c msg * /server:" & strComputer & " /w " & strMessage,0,True)	   
      Line 124:  strCommand = objShell.Run ("cmd /c msg * /server:" & strComputers(intCounter) & " /w " & strMessage,0,True)
      Line 142:  strCommand = objShell.Run("cmd /c msg * /server:" & strComputer & " /w " & strMessage,0,True)
      
      If you see, the only difference is the insertion of the /w option after strComputer & "
      
      Alternatively, you can increase the time (default is 1 minute) so the message will stay on the screen for more time (in the example below, the message stays for 6 minutes, or 360 seconds):
      
      Line 85:   strCommand = objShell.Run ("cmd /c msg * /server:" & strComputer & " /time:360 " & strMessage,0,True)	   
      Line 124:  strCommand = objShell.Run ("cmd /c msg * /server:" & strComputers(intCounter) & " /time:360 " & strMessage,0,True)
      Line 142:  strCommand = objShell.Run("cmd /c msg * /server:" & strComputer & " /time:360 " & strMessage,0,True)
      
      The modification in this case is in the same place, but instead of using /w, you will use /time:<timeinseconds> option.
  • 1 Minute timeout
    2 Posts | Last post August 15, 2014
    • I am also having a problem with the script disappearing from the screen after 1 minute.  How do we modify it to stay on the screen longer or until the user click's ok?
    • Hi,
      
      I only saw your message now, so here are the tips to help you adjust the script for your needs:
      
      You can modify these lines so the user will have to click OK on the popup message:
      
      Line 85:   strCommand = objShell.Run ("cmd /c msg * /server:" & strComputer & " /w " & strMessage,0,True)	   
      Line 124:  strCommand = objShell.Run ("cmd /c msg * /server:" & strComputers(intCounter) & " /w " & strMessage,0,True)
      Line 142:  strCommand = objShell.Run("cmd /c msg * /server:" & strComputer & " /w " & strMessage,0,True)
      
      If you see, the only difference is the insertion of the /w option after strComputer & "
      
      Alternatively, you can increase the time (default is 1 minute) so the message will stay on the screen for more time (in the example below, the message stays for 6 minutes, or 360 seconds):
      
      Line 85:   strCommand = objShell.Run ("cmd /c msg * /server:" & strComputer & " /time:360 " & strMessage,0,True)	   
      Line 124:  strCommand = objShell.Run ("cmd /c msg * /server:" & strComputers(intCounter) & " /time:360 " & strMessage,0,True)
      Line 142:  strCommand = objShell.Run("cmd /c msg * /server:" & strComputer & " /time:360 " & strMessage,0,True)
      
      The modification in this case is in the same place, but instead of using /w, you will use /time:<timeinseconds> option.
      
      
      
  • The script works great, aside from a list of machines...
    3 Posts | Last post May 07, 2014
    • The script works great to individual machines, I have not tested the entire domain yet, but I have an issue when sending to a list. I'm not sure if the script locks up, or what, but it just doesn't do anything. No error message, no warnings or prompts of any kind. In going through the VB it makes sense, any reason you can think of that it wouldn't send to a list? The list is formated correctly, as are all the target computers.
    • I have tested again the send messages to a list feature and it worked fine here. The problem may be related to the carriage return sign generated on the text editor used to generate the file. I use notepad to generate the list, so you will be sure that the script will read it ok. Make sure also that the administrator user used to send the message is also administrator on the target machines. 
    • PS: There is a report saying that the user necessarily doesn't need to be administrator. There were people who told me that putting the user that sends the message on the "Remote Desktop Users" group of the remote machine is enought  to make it work. Anyhow, I have not tested this situation yet.
1 - 10 of 23 Items