error 1722 getting session names

LeTay
LeTay used Ask the Experts™
on
Trying to send a broadcast from Windows Server 2008 to a XP station
Use msg.exe (net send does not exist anymore)
Gives the above message
But from the server to the server it works, and also from the station to itself, so it seems RPC is okay on both platform ...
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ibrahim52Team Leader

Commented:
It works only on a DOMAIN environment, but if you have a WORKGROUP. It won't work.
Team Leader
Commented:
Alright, a similar discussion is available. Have a look at it. Good luck.

Referred Link :
http://www.neowin.net/forum/topic/880618-using-msgexe/

Author

Commented:
It is in a DOMAIN dear friends
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

ibrahim52Team Leader

Commented:
But did you visit that link ?

Author

Commented:
Yes but it did not help me
It is maybe a problem of firewall ...
Does msg.exe uses a specific port ?
Are you sure you don't have terminal services running? This is a dependancy for this to run.

I assume this is the exact error you receiving.
"Error [1722]:The RPC server is unavailable." you need to add a registry key.

HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server

Name: AllowRemoteRPC
Type: REG_DWORD
Value : 1

This enables remote RPC. RPC is port 135.

Then try "msg * /server:<domainname> "message" this will broadcast on your domain.

Author

Commented:
msg.exe does not seem to work in all cases !
Thanks for replying. Yes, msg.exe runs using the "RpcSs" Service. Can you run "sc query RpcSss | FIND "STATE" " and display it's output?

Author

Commented:
the sc query says that RpcSss does not exist as an installed service ...
Try dropping the last s and try it again.

Author

Commented:
No answer solving my problem

Author

Commented:
Sorry about that, I had many other tasks to do, and this one was not a top priority
I will come on it soon

Author

Commented:
sc query rpcss state is RUNNING
still get error 1722
Can you post a example of the command you are using. You can omit exact domain and username using a generic format instead as long as it shows exactly what your typing for the command.

Author

Commented:
I am logged on server Windows 2008
Its name is zavnt302 and the account I am logged on is vobadm
I have another PC, named h3ysh2j where I am logged on as taymans

From the server, I issue this : msg   taymans   /server:h2ysh2j "Hello World !"
I get the error 1722
From the server, I issue now : msg vobadm /server:zavnt302 "Hello World !"
I get the broadcast popup message
From the PC, I issue this : net send taymans "Hello World !"
I get the broadcast popup message
Well I looked further at the problem. This usually occurs when the issuer does not give "domain\user" in the command. So try entering the command "msg   "h2ysh2j \taymans"   /server:h2ysh2j "Hello World !" " and for the other "msg "zavnt302\vobadm" /server:zavnt302 "Hello World !"". See if that resolves your issue.

Author

Commented:
We are in a real domain
I tried both your syntax and also with domain\user

The first (msg to other computer) failed both ways

The second (msg to local) failed (did not without) with this : zavnt302\vobadm does not exist ir is disconnected...
Ok, Hmm, that is how the error message is diagnosed directly from MSDN. Thought it was worth a try.  Well I do know it's a drastic change in the protocol used. May need to look into it some more and since your method works on both servers but not the  XP workstation, if no real workaround exists then there maybe a 3rd party service that you can install that supports all platforms involved. Just a thought.
The more I look at this. It becomes apparent that XP either is not setup correctly, incompatible to receive msg.exe RCP traffic like this or is getting blocked, since the server to server works fine. I would lean towards XP being the main problem and point all troubleshooting in this direction.

Author

Commented:
Thanks for the investigation but what can I do now at client side ?
Is your XP client setup correctly as a terminal client role? Msg.exe runs on RPC protocol and Terminal Services. This being said it utilitizes port "3389". Which is also known as Remote Desktop Protocol. Do you have this enabled??? We already know RPC service is running from previous posts.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial