Server Agents for RDP
Overview
QueryPie can perform access control and permission management for Windows Servers. To connect remotely through RDP Protocol, you must install Server Agent on the Windows Server you want to manage. You can also check RDP sessions in real-time and force terminate connected RDP sessions through the Kill Session feature.
- Windows Server Agent only supports Windows Server 2012 and above.
 - For RDP communication, the following ports must be allowed between QueryPie and Windows Server.
- RDP connection must be allowed on port 
13389. 
 - RDP connection must be allowed on port 
 - When connecting to Windows Server via RDP using AD authentication, enter the account in @-included format.
 - Even if you terminate RDP sessions through QueryPie, existing sessions (or console connections) are not logged off.
 

Administrator > Servers > Connection Management > Server Agents for RDP
Viewing Server Agents
- Navigate to Administrator > Servers > Connection Management > Server Agents for RDP menu.
 - You can search by server name using the search box in the top left of the table.
 - You can refresh the server list using the refresh button in the top right of the table.
 - The table provides the following column information:
- Name : Server agent name (Windows Server’s Computer name)
 - Host : Server’s IP
 - Linked Server : Server linked to the server agent
 - Status : Server agent status
- Offline : Server agent offline or communication impossible state
 - Online : Server agent online and RDP connection possible state
 - Connection Fail : Server agent responds but cannot send packets, and clicking Connection Fail allows manual input of IP address to connect to target windows server
 
 - Last Update Status : Last update status
 - Last Update Attempted At : Last update date and time
 - Linked At : Time when server agent first communicated
 - Updated At : Most recent communication time with server agent
 
 
Creating Server Agents
- Server agents are automatically created on the Server Agents for RDP screen when server agents installed on windows servers communicate with QueryPie servers.
 - When QueryPie servers and Server Agents communicate, Windows Servers are automatically registered in QueryPie’s Servers.
 - You can check the Server Agent installation method through the Installing and Removing Server Agent guide.
 
Port and IP of Windows Servers linked to RDP Server Agent cannot be changed.
Response Methods for Server Agents Communication Failures
After installing Server Agent on Windows Server, Server Agent information may appear on the Server Agents for RDP page, but Status may be displayed as Connection Failed.
The Host information of Server Agents registered in QueryPie is automatically selected from the IP information that Windows Server has as a communicable Host. However, if communication from Server Agent to QueryPie is possible but communication from QueryPie to Server Agent is not possible, Server Agent is added and displayed as Connection Failed status.
In this case, it can be resolved as follows.

- Navigate to Administrator > Servers > Connection Management > Server Agents for RDP menu.
 - Click on the Connection Failed item.
 - Enter the IP that can connect to Windows Server in the Host of the popup and click the 
Savebutton. 
Updating Server Agents
You can directly update Server Agents to the latest version from the QueryPie web screen. Updates proceed to agent versions compatible with the currently used QueryPie version.
- Navigate to Administrator > Servers > Connection Management > Server Agents for RDP menu.
 - Select the checkbox on the left of the target server to update in the table.
 - Click the 
Updatebutton that appears at the top of the table to proceed with the update. 
Deleting Server Agents

- Navigate to Administrator > Servers > Connection Management > Server Agents for RDP menu.
 - Check the checkbox on the left of the target server to delete in the table.
 - Click the 
Deletebutton that appears in the table column line. - When a popup appears, enter the DELETE text and click the 
Deletebutton to proceed with deletion. 
In QueryPie, you must first delete Server Agents installed on Windows Servers, then delete Server Agents from QueryPie’s Server Agents for RDP menu. If you do not delete Server Agents installed on Windows Servers first, Server Agents will be registered again in QueryPie and create new Windows Servers.