大网数据广告活动
远程桌面与会话

Generate a usage report for remote clients using historical data

· 52CE 我爱测

Learn how to enable accounting on the Remote Access server so you can generate a usage report for the remote clients that are accessing the server.

Note: Windows Server 2012 combines DirectAccess and Routing and Remote Access Service (RRAS) into a single Remote Access role.

The management console on the Remote Access server can be used to generate a usage report for the remote clients that are accessing the server. To generate a usage report for remote clients, you first enable accounting on the Remote Access server. After you generate the report, you can use the monitoring dashboard that is available in the management console on the Remote Access server to view the load statistics on the server.

Note: You must be signed in as a member of the Domain Admins group or a member of the Administrators group on each computer to complete the tasks described in this topic. If you cannot complete a task while you are signed in with an account that is a member of the Administrators group, try performing the task while you are signed in with an account that is a member of the Domain Admins group.

To enable accounting on the Remote Access Server
  1. In Server Manager, click Tools, and then click Remote Access Management.

  2. Click REPORTING to navigate to Remote Access Reporting in the Remote Access Management Console.

  3. Click Configure Accounting in the Remote Access Reporting task pane.

  4. Select the Use inbox accounting check box to enable accounting on the Remote Access server.

  5. Click Apply to enable the accounting configuration on the server, and then click Close after the server has applied the configuration successfully.

To generate the usage report
  1. In Server Manager, click Tools, and then click Remote Access Management.

  2. Click REPORTING to navigate to Remote Access Reporting in the Remote Access Management Console.

  3. In the middle pane, click dates in the calendar to select the report duration Start date: and End date:, and then click Generate Report.

  4. You will see the list of users that have connected to the Remote Access server within the selected time and detailed statistics about them. Click the first row in the list. When you select a row, the remote user activity is shown in the preview pane. Now select the Server Load Statistics tab in the preview pane to see the historical load on the server.

    Click the Server Load Statistics tab in the preview pane to see the historical load on the server.

Note: Understanding sessions

Remote Access accounting is based on the concept of sessions. In contrast to a connection, a session is uniquely identified by a combination of remote client IP address and user name. For example, if a machine tunnel is formed from the remote client, named Client1, a session will be created and stored in the accounting database. When a user named User1 connects from that client after some time passes (but the machine tunnel is still active), the session is recorded as a separate session. The distinction of sessions is to retain the distinction between machine tunnel and user tunnel.

Windows PowerShellWindows PowerShell equivalent commands

The following Windows PowerShell cmdlet or cmdlets perform the same function as the preceding procedure. Enter each cmdlet on a single line, even though they may appear word-wrapped across several lines here because of formatting constraints.

In the following script, change the date range for which you want a report in the -StartDateTime and -EndDateTime parameters.

PS> Get-RemoteAccessConnectionStatisticsSummary -StartDateTime "1 October 2010 00:00:00" -EndDateTime "14 October 2010 00:00:00"
Shows server load statistics.
PS> Get-RemoteAccessUserActivity -HostIPAddress 10.0.0.1 -StartDateTime "1 October 2010 00:00:00" -EndDateTime "14 October 2010 00:00:00"

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 08/07/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。