[Webinar] Learn how to a build a cloud-first strategyRegister Now


How to enable NETSEND for each workstation on network in order to broadcast system message.

Posted on 2006-04-25
Medium Priority
Last Modified: 2009-12-30
Our exchange server went down today, which left me with no way to contact everyone to let them know I was aware of the situation.

My network setup is 5 Server 2003 Standard Servers, and 50 Windows XP workstations.

I have three questions:

1)  What is the best way to enable NETSEND on each workstation on the network?
2)  How can I broadcast the NETSEND message to everyone?
3)  Is there a better method for notifying co-workers beyond NETSEND or, obviously in this case, email?
Question by:CBIA
  • 7
  • 2
  • 2
  • +6
LVL 13

Expert Comment

ID: 16538452
to enable net send to machines across network you need to start the massenger service (not MSN massenger)
you can do that with script.
LVL 97

Assisted Solution

by:Lee W, MVP
Lee W, MVP earned 1000 total points
ID: 16538472
Assuming the messenger service is running and you have your no name resolution issues, then you would use:

1.  As long as the messenger service is running and the firewall isn't blocking it, it's enabled.
2.  NET SEND * Put your message here
3.  IM.  Yelling.  Custom software.  Net send isn't a great tool, in my opinion.
LVL 13

Expert Comment

ID: 16538521
to broadcast net send just type : net send /?
in the command line.

and a better method will be microsoft communiction server,it's like massenger (MSN)
but for organizations. or some other application similar
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 13

Expert Comment

ID: 16538541
to broadcast net send just type : net send /?
in the command line. you will get the exact syntex you need ....  :)

Author Comment

ID: 16538627
Each workstation does not currently have it running.  What is the best way to enable this service for the entire network?
LVL 13

Expert Comment

ID: 16538692
for each machine you should run :net start messenger
but you need to make sure that it's not in disable mode. (menual is good ...)
LVL 13

Expert Comment

ID: 16538701
you can do thet with login script or startup script via GPO.

Author Comment

ID: 16538712
Each workstation is in disable mode.

Where can I find an example script?
LVL 13

Expert Comment

ID: 16538843
this VBscript example to change services from menual to disabled :

play with ths a bit and i hope it will be useful ....

Accepted Solution

fahhudi earned 1000 total points
ID: 16539976
or you can use the GP as the following:

Domain GP -> Computer configuration -> Windows settings -> Security settings -> System services -> Define the "Messenger" policy as Automatic.

Thanks & Best Regards :)

Expert Comment

ID: 16539989
And regarding commandline :

no need to use vbs :

Change state by commandline :

sc config Messenger start= auto

complete sc syntax possible :

        SC is a command line program used for communicating with the
        Service Control Manager and services.
        sc <server> [command] [service name] <option1> <option2>...

        The option <server> has the form "\\ServerName"
        Further help on commands can be obtained by typing: "sc [command]"
          query-----------Queries the status for a service, or
                          enumerates the status for types of services.
          queryex---------Queries the extended status for a service, or
                          enumerates the status for types of services.
          start-----------Starts a service.
          pause-----------Sends a PAUSE control request to a service.
          interrogate-----Sends an INTERROGATE control request to a service.
          continue--------Sends a CONTINUE control request to a service.
          stop------------Sends a STOP request to a service.
          config----------Changes the configuration of a service (persistent).
          description-----Changes the description of a service.
          failure---------Changes the actions taken by a service upon failure.
          qc--------------Queries the configuration information for a service.
          qdescription----Queries the description for a service.
          qfailure--------Queries the actions taken by a service upon failure.
          delete----------Deletes a service (from the registry).
          create----------Creates a service. (adds it to the registry).
          control---------Sends a control to a service.
          sdshow----------Displays a service's security descriptor.
          sdset-----------Sets a service's security descriptor.
          GetDisplayName--Gets the DisplayName for a service.
          GetKeyName------Gets the ServiceKeyName for a service.
          EnumDepend------Enumerates Service Dependencies.

        The following commands don't require a service name:
        sc <server> <command> <option>
          boot------------(ok | bad) Indicates whether the last boot should
                          be saved as the last-known-good boot configuration
          Lock------------Locks the Service Database
          QueryLock-------Queries the LockStatus for the SCManager Database
        sc start MyService
LVL 44

Expert Comment

ID: 16540766
when the server goes down, you cant do this, it assumes the server is up.
LVL 13

Expert Comment

ID: 16541546
note that if the user is not admin he mey have a problem to start the service
or change the state from disable to menual.
in this case the best way is using GPO or startup script (using VB or  command line)
because they run as admin even user is login to network.
in any way you should considere the security risks when enable the messenger service.
(some virus like alot this service )

ps , by using VB the user will not get the black cmd window while startup
this whay i prefer VB ....

Expert Comment

ID: 16544031
Here's one that will go through an OU (and any sub-OUs) and change the service startup type to Manual, then start the service.  Change the strComputerOU.  I've tested it on my small test OU and it works fine.  This recursively steps though the OU, and applies this to all Computer objects.  I've commecnted out the WScript.Echo line, but you can uncommment it to see it as its happening.  

Just save the file with a .vbs extension and run.  Enjoy.

On Error Resume Next
'connect to the directory
Dim rootDSE, domainObject
Set rootDSE=GetObject("LDAP://RootDSE")
strComputerOU = "OU=Computers,DC=domain,DC=com"
Set oOU = GetObject("LDAP://" & strComputerOU)

'start with the parent OU

Sub WorkWithObject(oContainer)
   Dim oADObject
   For Each oADObject in oContainer
      Select Case oADObject.Class
         Case "computer"
               'oADObject represents a COMPUTER object;
               'do something with it
                     strComputer = Split(oADObject.Name, "=")(1)
                     'WScript.Echo strComputer
                        Set oWMI = GetObject("winmgmts://" & strComputer)
                        strServiceName = "Messenger"
                        strWQL = "Select state from Win32_Service " _
                            & "Where displayname='" & strServiceName & "'"
                        Set oResults = oWMI.ExecQuery(strWQL)
                        For Each oService In oResults
                                If Not LCase(oService.State) = LCase("Running") Then
                                End If
         Case "organizationalUnit" , "container"
               'oADObject is an OU or container...
               'go through its objects
      End select
End Sub

Expert Comment

ID: 16544138
Oh, and by the way, you can also use psservice from Sysinternals to remotely start services.  That can take input from a text file, so you can just right click on the appropriate OU, select "Export List", format resulting list to fix it up, then start the service that way

Expert Comment

ID: 16632895
I don’t recommend enabling the messenger service, especially if the computer is internet facing (like traveling laptops). There are lots of security reasons messenger come disabled by default on XP. Still in a small network messenger and net send my be your best practical cheep communication method – minus having someone yell across the office that e-mail is down.

If you are interested in one way communications Vypress Auvis may work for you:

Expert Comment

ID: 16684945
i agree with fahhudi's answer. force the messenger service to start with group policy on your worstation and then you can send your net send messager. net send * "message"

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
The article covers five tools all IT professionals should know about, as they up productivity by a great deal!
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question