Windows broadcast message

Steffen Ullrich steffen at easybrowse.com
Wed Feb 9 10:13:27 GMT 2000


Try attached quick perl hack, usage:
echo "System goes down in 10 seconds" | ./smb2all.pl

It tries to get the list of connected hosts thru smbstatus, and then sends
each host the message.

On Wed, Feb 09, 2000 at 08:50:26PM +1100, Lars Kneschke <lk at netuse.de> wrote:
> Ondrej Hanak wrote:
> >
> > Hallo all,
> > does anybody know how to send broadcast message from Linux (UNIX) to all
> > Windows clients on local network? Or better to connected stations to
> > samba server?
> > I wanna send this during shutdown sequence signaled by UPS.
> > Thanks for tips and nice day with samba ;)
> >
> > Hoj O.H.
> smbclient -M host will send a message to a host. Don't know how to send
> a message to all Windows Clients. But this was discussed some days ago
> on this list. Maybe the mailingslist archive can help you.

> Cu
> --
> Lars Kneschke
> NetUSE Kommunikationstechnologie GmbH
> Siemenswall, D-24107 Kiel, Germany
> Fon: +49 431 386435 00 -- Fax: +49 431 386435 99

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smb2all.pl
Type: application/x-perl
Size: 400 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-ntdom/attachments/20000209/3a3eda3d/smb2all.bin


More information about the samba-ntdom mailing list