Link to home
Start Free TrialLog in
Avatar of Imelda
Imelda

asked on

Disable / Hide Sender Net Send

How to disable and hiding the sender name in net send ?
ASKER CERTIFIED SOLUTION
Avatar of Droby10
Droby10

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Imelda
Imelda

ASKER

By the way, How about to disable the net send ? And some of computer couldn't be send with the compiled executable from you. Error message like (0x5) Access is denied even I could use net send to that computer.
You need to disable the messenger service to prevent people from using net send.
the executable was a slim version of what can be done with the NetMessageBufferSend api call (which is why i supplied the source)...it's not a full-blown app, while i tested it in my lab here(for about 5 minutes which is about how long it took to build it)...and it worked, it hasn't been tested in variant environments.  if you get the same message from using it with a localhost as the target then it's one of 3 things...a) you're on a win9x box b) you need to update your java vm. c) i didn't deploy it properly.

you can't disable the sender name from within "net send"...as it passes a null param as the fromname in which case netmessagebuffersend uses the local netbios name.



Avatar of Imelda

ASKER

Thanks. It a great answer. :)
You are a good expert at this point ;-)

but i wonder if there's no dos command (direct)

to change youre local netbios name, like for 30 seconds,
(when you send the message.)

After that you can change the name back,
but i guess the netbios variable cant be accesed via dos.

Maybe some experts know more ?

best regards, Sam.

To disable the net send service, you need to stop the Messenger service of the 2000/XP machine. This will stop incoming messages.

To disable the service:
Right click My Computer -> Click Manage
Expand Services and Applications on the left colum
Click on Services
Find the Messenger service on the right hand side and double click.
Set the Start up type to either manual or disabled.

That will stop the annoying pop-ups, which lately have been used as free ad's.
I have used the above sample light version and didn't work on my network. IT can't find the target computer. I ahve tried IP address and Computer name but didn't work. Does anyone got a program which actually works. How can you disable this "net send" function in a 3000 PCs environment running 2000/XP. Our Servers are Windows 2000. I have this guy sending every one as "GOD". I need to fix this asap.


Thanks
I would write a script to disable the service, then apply a GPO that is assigned to an OU with all the computers. I inserted the script below.
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
 
Set colServiceList = objWMIService.ExecQuery _
    ("Select * from Win32_Service where Name = 'Messenger'")
 
For Each objService in colServiceList
    If objService.State = "Running" Then
        objService.StopService()
        Wscript.Sleep 5000
    End If
    errReturnCode = objService.ChangeStartMode("Disabled")   

Open in new window