1 00:00:04,140 --> 00:00:05,080 In this demonstration, 2 00:00:05,080 --> 00:00:08,550 I'll show you how to enable inbox accounting and reporting. 3 00:00:08,550 --> 00:00:10,740 It's important to know that before we get started, 4 00:00:10,740 --> 00:00:13,720 you'll need to install my custom PowerShell module, 5 00:00:13,720 --> 00:00:19,740 so the command to do that is Install‑Module InboxAccountingDatabaseManagement. 6 00:00:19,740 --> 00:00:22,040 So here we are back on our VPN server, 7 00:00:22,040 --> 00:00:25,040 and we are in the Remote Access Management Console. 8 00:00:25,040 --> 00:00:28,630 It's important to understand that reporting is only available 9 00:00:28,630 --> 00:00:30,600 to you in this modern management console. 10 00:00:30,600 --> 00:00:34,830 We can't do any reporting in the legacy or older Routing 11 00:00:34,830 --> 00:00:36,550 and Remote Access Management Console. 12 00:00:36,550 --> 00:00:39,410 So here, if you go to the Remote Client Status, 13 00:00:39,410 --> 00:00:42,740 you see we have our current connections like we saw previously, 14 00:00:42,740 --> 00:00:44,460 but if we go to the Reporting tab, 15 00:00:44,460 --> 00:00:47,620 you'll notice that there is no reports here for us to generate, 16 00:00:47,620 --> 00:00:50,170 and it just says Inbox accounting must be 17 00:00:50,170 --> 00:00:52,500 configured before reporting can be used. 18 00:00:52,500 --> 00:00:54,840 So there is a couple of different ways to do this, 19 00:00:54,840 --> 00:00:59,260 the first is through the UI, so if you click on the Configure Accounting link, 20 00:00:59,260 --> 00:01:02,940 it brings up this little wizard or menu here and you'll want to 21 00:01:02,940 --> 00:01:06,340 select Use inbox accounting, and then here, 22 00:01:06,340 --> 00:01:10,490 the storage accounting for the logs, this is the data retention period. 23 00:01:10,490 --> 00:01:13,440 I usually leave this set to the default of 12 months, 24 00:01:13,440 --> 00:01:16,940 but you can change it to anything you like as well. 25 00:01:16,940 --> 00:01:19,070 So once that's done, you can click Apply. 26 00:01:19,070 --> 00:01:19,450 Now, 27 00:01:19,450 --> 00:01:21,110 I'm not going to do that here because I want to 28 00:01:21,110 --> 00:01:23,070 demonstrate the PowerShell method. 29 00:01:23,070 --> 00:01:26,460 So to install accounting using PowerShell, 30 00:01:26,460 --> 00:01:30,340 we'll open an elevated PowerShell command window, 31 00:01:30,340 --> 00:01:37,840 and the command that we'll execute is Set‑RemoteAccessAccounting, 32 00:01:37,840 --> 00:01:40,840 and we'll use the switch EnableAccountingType, 33 00:01:40,840 --> 00:01:44,540 and we'll specify Inbox as the type. 34 00:01:44,540 --> 00:01:52,340 And then I'll also add PassThru so that we can see that information. 35 00:01:52,340 --> 00:01:53,680 And once that's done, 36 00:01:53,680 --> 00:02:01,540 we'll have to close out of the Remote Access Management Console and reopen it. 37 00:02:01,540 --> 00:02:02,980 And if we go to the Reporting tab, 38 00:02:02,980 --> 00:02:06,470 you should now see that we have the ability to generate reports. 39 00:02:06,470 --> 00:02:08,320 Now here is the challenge. 40 00:02:08,320 --> 00:02:12,100 Of course, there is no data in this database, I literally just installed it. 41 00:02:12,100 --> 00:02:20,000 So what I'm going to do a little bit later is actually import a database that has some data so that we can run some reports.