Page 1 of 1 1
Topic Options
#135489 - 2005-03-14 03:35 PM SENDMESSAGE to a computer in another domain
fritschf Offline
Fresh Scripter

Registered: 2004-03-23
Posts: 11
Is it possible to use SENDMESSAGE to send a message to a computer in another (trusted) domain?

Thanks
Franz

Top
#135490 - 2005-03-14 03:44 PM Re: SENDMESSAGE to a computer in another domain
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Why not try it and answer your own question?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#135491 - 2005-03-14 04:02 PM Re: SENDMESSAGE to a computer in another domain
fritschf Offline
Fresh Scripter

Registered: 2004-03-23
Posts: 11
OK, maybe the post was a little bit to short or to simple...

Of course I tested the command with this results:

First try:
$RC = SendMessage("H0109401", "Test")
Result (@serror): The message alias could not be found on the network.

Second try:
$RC = SendMessage("DH01094\H0109401", "Test")
(where DH01094 is the name of the domain)
Result (@serror): The filename, directory name, or volume label syntax is incorrect.

And now the correct question:
Can I use a domain name with SENDMESSAGE?

Franz


Top
#135492 - 2005-03-14 04:09 PM Re: SENDMESSAGE to a computer in another domain
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Are you sure the messenger service is running on the intended target?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#135493 - 2005-03-14 04:19 PM Re: SENDMESSAGE to a computer in another domain
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Also, can the target name be resolved by WINS or broadcast?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#135494 - 2005-03-14 04:23 PM Re: SENDMESSAGE to a computer in another domain
fritschf Offline
Fresh Scripter

Registered: 2004-03-23
Posts: 11
Yes, because when I start the script on a computer in the same domain as the target computer the command is executed without problems.
Top
#135495 - 2005-03-14 04:31 PM Re: SENDMESSAGE to a computer in another domain
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Does NET SEND demonstrate the same behavior ?
Top
#135496 - 2005-03-14 04:33 PM Re: SENDMESSAGE to a computer in another domain
fritschf Offline
Fresh Scripter

Registered: 2004-03-23
Posts: 11
WINS is not active in the network, but broadcast is no problem (you can ping the workstation name)
Top
#135497 - 2005-03-14 04:41 PM Re: SENDMESSAGE to a computer in another domain
fritschf Offline
Fresh Scripter

Registered: 2004-03-23
Posts: 11
Hi Shawn,

here are the test results with net send:
--------------------------------------------
C:\>net send dh01094\h0109401 "Test"
The syntax of this command is:
NET SEND
{name | * | /DOMAIN[:name] | /USERS} message

C:\>net send h0109401 "Test"
An error occurred while sending a message to H0109401.

The message alias could not be found on the network.

More help is available by typing NET HELPMSG 2273.

-------------------------------------------------

Seems that the problem is the same ...

Top
#135498 - 2005-03-14 05:08 PM Re: SENDMESSAGE to a computer in another domain
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Ping is not a broadcast protocol, so that's not much of a proof.

Is the machine that you are sending from on the same subnet as the machine you are sending to?

The problem is that there is a specific NetBIOS name for the messenger service. If you cannot resolve the messenger NetBIOS name you cannot send the message even if you can resolve the IP address.

Top
#135499 - 2005-03-14 05:30 PM Re: SENDMESSAGE to a computer in another domain
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
I have used "net send " a number of times to send messages to pc's connected over the internet.

for example....

net send 27.85.33.184 stop port scanning me you little prick!

but, the messenging service needs to be turned on on the remote pc, as well as the local pc. also, not behind any type of firewall.





Top
#135500 - 2005-03-14 06:38 PM Re: SENDMESSAGE to a computer in another domain
Richie19Rich77 Offline
Seasoned Scripter
*****

Registered: 2002-08-16
Posts: 624
Loc: London, England
I have just tested sending a message to a PC on a trusted domain and it works only if I send to the IP address of the workstation.

On different VLans, and no WINS.

Top
#135501 - 2005-03-15 10:19 AM Re: SENDMESSAGE to a computer in another domain
fritschf Offline
Fresh Scripter

Registered: 2004-03-23
Posts: 11
Shame over me!

The problem was that the messenger service on the local machine was disabled...

Thanks to all who gave me hints.

PS: As a little compensation I posted an article about how to deal with unicode files.


Edited by fritschf (2005-03-15 10:29 AM)

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1635 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.063 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org