1 00:00:01,940 --> 00:00:03,670 Now let's move on to reporting. 2 00:00:03,670 --> 00:00:06,540 Generating historical user activity reports is 3 00:00:06,540 --> 00:00:09,850 commonplace in many organizations, and unfortunately, 4 00:00:09,850 --> 00:00:13,510 it's not enabled by default when you install the RRAS role on 5 00:00:13,510 --> 00:00:17,070 Windows server so administrators must perform some additional 6 00:00:17,070 --> 00:00:18,740 tasks to enable this feature. 7 00:00:18,740 --> 00:00:21,290 When the Routing and Remote Access Service is installed, 8 00:00:21,290 --> 00:00:23,780 there is an option to enable what's called accounting, 9 00:00:23,780 --> 00:00:27,340 and in particular, we're interested in configuring inbox accounting, 10 00:00:27,340 --> 00:00:29,880 which is preferable over RADIUS accounting. 11 00:00:29,880 --> 00:00:34,280 Enabling inbox accounting allows for the long‑term storage of user activity 12 00:00:34,280 --> 00:00:37,490 data for which administrators can define retention periods, 13 00:00:37,490 --> 00:00:38,460 and ultimately, 14 00:00:38,460 --> 00:00:42,810 generate reports for any user activity that occurred during that timeframe. 15 00:00:42,810 --> 00:00:45,460 The information available in these reports is the same 16 00:00:45,460 --> 00:00:47,970 information you saw in a previous lesson when we were 17 00:00:47,970 --> 00:00:50,540 looking at current user activity. 18 00:00:50,540 --> 00:00:52,840 When inbox accounting is enabled and configured, 19 00:00:52,840 --> 00:00:55,950 a Windows internal database is installed and user 20 00:00:55,950 --> 00:00:58,250 activity is logged to that database. 21 00:00:58,250 --> 00:01:02,640 Reports are generated from information stored in that database as well. 22 00:01:02,640 --> 00:01:05,370 This database is essentially a SQL database, 23 00:01:05,370 --> 00:01:10,350 and as such, requires some periodic maintenance to maintain optimal performance. 24 00:01:10,350 --> 00:01:11,180 To support this, 25 00:01:11,180 --> 00:01:14,940 I've developed a PowerShell module that includes a variety of tools 26 00:01:14,940 --> 00:01:17,740 that administrators will find helpful in this regard. 27 00:01:17,740 --> 00:01:19,430 Using my PowerShell module, 28 00:01:19,430 --> 00:01:23,130 administrators can back up and restore the inbox accounting database, 29 00:01:23,130 --> 00:01:25,670 they can compress the database to recover disk space, 30 00:01:25,670 --> 00:01:26,700 and optionally, 31 00:01:26,700 --> 00:01:29,360 relocate the database from the default location of 32 00:01:29,360 --> 00:01:34,040 the C drive to a different disk, if required. 33 00:01:34,040 --> 00:01:35,180 A word of caution though, 34 00:01:35,180 --> 00:01:37,840 moving the inbox accounting database from its default 35 00:01:37,840 --> 00:01:41,190 location is not formally supported by Microsoft, 36 00:01:41,190 --> 00:01:49,000 so please exercise caution when you're using this option, and of course, use this technique at your own risk.