Link to home
Start Free TrialLog in
Avatar of LeTay
LeTay

asked on

error 1722 getting session names

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 ...
Avatar of ibrahim52
ibrahim52
Flag of United Arab Emirates image

It works only on a DOMAIN environment, but if you have a WORKGROUP. It won't work.
ASKER CERTIFIED SOLUTION
Avatar of ibrahim52
ibrahim52
Flag of United Arab Emirates image

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 LeTay
LeTay

ASKER

It is in a DOMAIN dear friends
But did you visit that link ?
Avatar of LeTay

ASKER

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.
Avatar of LeTay

ASKER

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?
Avatar of LeTay

ASKER

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

ASKER

No answer solving my problem
Avatar of LeTay

ASKER

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

ASKER

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.
Avatar of LeTay

ASKER

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.
Avatar of LeTay

ASKER

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.
Avatar of LeTay

ASKER

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.