[Samba] Pop-up messages to domain members?

Andrew Gaffney agaffney at skylineaero.com
Thu Feb 12 21:26:54 GMT 2004

I wrote a small script for doing this very thing and posted it here about a month or two back:


my $msg = shift;
open PIPE, "smbstatus |";
foreach $line (<PIPE>) {
   if($line =~ /\d+\s+(\S+)\s+\S+\s+(\S+)\s+\((.+)\)/) {
     system "echo '$msg' | smbclient -M $2 -I $3";

Michael Brown wrote:
> I don't believe you can send a message to a whole domain using smbclient (please someone correct me if I'm wrong), I think you will have to do it one at a time, or write a script:
> $ smbclient -M host 
> <then will prompt for message>
> Hope this helps.
> Michael Brown
> On Thu, 12 Feb 2004 15:07:19 +0100
> "Anders Norrbring" <anders at norrbring.biz> wrote:
>>>Is it possible to send a pop-up message to all connected Windows stations in a
>>>whole domain via one command, or is it necessary to send one message per
>>>command to each station?  It must be a command line utility since X isn't
>>>running on the server.
>>>Anders Norrbring

Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.

More information about the samba mailing list