Send Message fails with "Error code 2: The system cannot find the file specified"

2 posts

Justin Guest
8 hours ago

Do a LAN scan, find a Windows box, RMB > Send Message > type message, OK - get error:
[Window Title]
SoftPerfect Network Scanner

[Content]
Unable to send the message. Error code 2: The system cannot find the file specified.

[OK]

Andrew SoftPerfect
1 hour ago

Send Message uses the same Windows Terminal Services API as the built-in msg command, so it only works if the remote computer accepts that call. Windows desktop editions refuse it by default, and the error code that comes back is not always a meaningful one.

On the remote computer, set the DWORD AllowRemoteRPC to 1 under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server and restart it. The account Network Scanner runs under also has to be an administrator there, and its firewall must allow File and Printer Sharing (SMB, port 445), which the call travels over.

You can check the remote side independently with the same command from a command prompt:

msg * /server:HOSTNAME "test"

If that fails too, the error it prints says which of the above is missing.

Reply
Shown with your post. Sign in to keep the same name every time.
(optional, never shown)
Only needed if you want notifications about replies.
Drag files here, paste a screenshot, or . Images up to 10 MB. Text, log and zip files up to 2 MB. Up to 5 files per post.
You can edit your post until someone replies.