Error: 1722 Retrieving Session Names

I am trying to check if anyone is connected to the server in my command using the following command: query session /server:<SERVERNAME> . But every time I get the following error:

Error: 1722 getting session names.

Error [1722]: RPC sever is unavailable.

I already tried with qwinsta, but I am getting the same problem too. In any case, to get around the problem and get the necessary information?

+6
source share
2 answers

Run regedit.exe (you must be an administrator for this) Goto:

HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server

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

+5
source

For me, one Windows Server 2012 R2, indicating this error, was fixed by adding the following rule. None of the 97 other problems were.

 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 
0
source

Source: https://habr.com/ru/post/989662/


All Articles