Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:1722 Getting session names

I am trying to check if anybody is connected to the server in my team with the following command: query session /server:<SERVERNAME>. But Every time I end up getting the following error:

Error:1722 getting session names.

Error[1722]: The RPC sever is unavailable.

I have already tried with qwinsta but i get the same issue in there too. Is there anyway to get around the issue and get the required?

like image 742
Ninja Avatar asked Jun 24 '15 08:06

Ninja


People also ask

How do I fix error 5 of Session name?

It is due to a setting related to Terminal Server. That's not to miraculous, since msg.exe is designed for messaging to terminal users. So, changing a simple registry value and rebooting makes it all work again.


2 Answers

launch regedit.exe (You have to be administrator to do that) goto:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server

and change AllowRemoteRPC from the value 0 to the value 1 on each machine which should be able to receive a message

like image 87
lewis4u Avatar answered Sep 17 '22 15:09

lewis4u


For me, the one Windows Server 2012 R2 giving this error was fixed by adding the following rule. None of the 97 other had the issue.

netsh advfirewall firewall add rule name="Open Port 135 RPC" dir=in action=allow protocol=TCP localport=135
netsh advfirewall firewall add rule name="Open Port 135 RPC" dir=in action=allow protocol=UDP localport=135
netsh advfirewall firewall add rule name="Open Port 445 RPC" dir=in action=allow protocol=TCP localport=445
netsh advfirewall firewall add rule name="Open Port 445 RPC" dir=in action=allow protocol=UDP localport=445
like image 24
rob Avatar answered Sep 17 '22 15:09

rob