Jump to content

Sending msg to all users in domain during work


Recommended Posts

Hey,

My collegue at work got asked to find a way to send some "communicate" to all users on domain (like some information that concerns all users). The main thing here is "NET SEND" won't work as it is disabled on MOST computers. Logon script wont' do anygood here as the boss wants the ability to send the communicate to all users when they are working and logged on. So i'm asking you guys if you know the way to do it? Maybe autoit has some functions like that? I haven't realy searched for sulution on forum as i don't exactly know how to "ask" for it.

Any help will be appreciated! Thank You!

My little company: Evotec (PL version: Evotec)

Link to comment
Share on other sites

1. You could use a GPO to enable messenger and use net send.

or

2. You might look at the IM scripts and look at modifying it to run as a service on each machine and just doing msgbox's for incoming messages.

You might be better off with enabling messenger because it's been through the ringer security-wise and because it's a bit easier to deploy a GPO than to deploy a new service.

My UDFs: ExitCodes

Link to comment
Share on other sites

i've done a net send program that send to all users of a group in ActiveDirectory

he does it in 3-4 secondesz for 1000 users

BUT

you have to enable net send on all computers (net start send)

in winxp it's disabled until sp1 or sp2, so you have to active it

-- Arck System _ Soon -- Ideas make everything

"La critique est facile, l'art est difficile"

Projects :

[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]
Link to comment
Share on other sites

1. You could use a GPO to enable messenger and use net send.

or

2. You might look at the IM scripts and look at modifying it to run as a service on each machine and just doing msgbox's for incoming messages.

You might be better off with enabling messenger because it's been through the ringer security-wise and because it's a bit easier to deploy a GPO than to deploy a new service.

Problem with GPO and messanger is that most if not all Antispyware programs (Windows Defender etc) block it by default. Enabling this will just make those programs disable it again or will make viruses to send "weird" msges to users :o

I have no "clue" at all about IM scripts :/

My little company: Evotec (PL version: Evotec)

Link to comment
Share on other sites

@MadBoy

Valid points. :o

Probably the same with the IM scripts. You'd have to exlude the ports. You could probably exclude the ports or add the executable to the exclusions for messenger too, for that matter. Depending on the antispyware software you might not be able to push these exclusions via GPO, and would have to figure out another way to do it; either scripting interaction with the GUI of that software or turning it off, updating its registry settings or INI files and turning it back on.

Edit: GUI not GIU :geek:

Edited by c0deWorm

My UDFs: ExitCodes

Link to comment
Share on other sites

i'm in discussion with my firm to implement the "autoit server" UDF

with you can do anything, but you will have to reserv a port in your network, that's our principal break

-- Arck System _ Soon -- Ideas make everything

"La critique est facile, l'art est difficile"

Projects :

[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]
Link to comment
Share on other sites

Well NET SEND seems the easiest choice. Most users use Symantec Antivirus here, some additionally Windows Defender or older Windows Antispyware. Both will disable NET SEND. Don't realy know how it will behave on users when GPO will tell it to ENABLE again. I can imagine some old ladies here in panic that SOMEONE send them some msg ;p

I'm now thinking about making autoit application that will be pushed to all computers thru domain and started as service on all of them. It would open some UDP port and wait for right string with password. Hrmms that seems like doable :o

My little company: Evotec (PL version: Evotec)

Link to comment
Share on other sites

Problem i see now is that all pc's will have the applications waiting .. but how do i tell the 'main' application to send it to all computers (would need some ip list or something), eh now my idea went to stage complicated ;p

My little company: Evotec (PL version: Evotec)

Link to comment
Share on other sites

This thread has a prototype messenger that uses the Windows mailslot API (same as NET SEND). Like NET SEND this can target all PCs on a domain, but rather than the default target ("messenger" mailslot, I think) you can use a different name; the example has uses "AutoIt" if I remember correctly...

Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines.

Link to comment
Share on other sites

i post a image of my script, it's in french, but i can convert it quickly

he can :

search every group in AD and list the users of it, in 2-5 seconds

send net send and/or mail (using blat ,waiting for a solution to use inetsmtpmail with Jpm)

personnalise messages, store them in separate txt files, add subject quickly.

here the screen

Edited by arcker

-- Arck System _ Soon -- Ideas make everything

"La critique est facile, l'art est difficile"

Projects :

[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...