Sending multiple "net send" commands
Posted on 2003-10-28
I need to build a simple broadcasting tool to send net send messages to a specific group of computers (based on username). No this isn't for spamming poor internet users but i would imagine that the application would work similarly to those advertising spams.
I have about 1000 internal users to send the messages to, some will be online and some will be offline. I have a vbscript right now that will do the net sends but going through the list of names sequentially would take too much time. I need to be able to send all these messages as quickly as possible as it is being used as an outage notification system. I am a newbie to vbscript so i'm not sure if theres a way to do this in Vbscript besides creating different shells to perform the net sends? This seems very messy and memory intensive though.
Perhaps there's a better way to do this in VB instead? Perhaps using NetMessageBufferSend fucntion in the Netapi32 api? But I am stuck at the same situation in that i need to find a way in VB to send these messages all at once and not one at a time to each user. Is multi-threading a possbility?