In this demonstration,
I'll show you how to enable inbox accounting and reporting.
It's important to know that before we get started,
you'll need to install my custom PowerShell module,
so the command to do that is Install‑Module InboxAccountingDatabaseManagement.
So here we are back on our VPN server,
and we are in the Remote Access Management Console.
It's important to understand that reporting is only available
to you in this modern management console.
We can't do any reporting in the legacy or older Routing
and Remote Access Management Console.
So here, if you go to the Remote Client Status,
you see we have our current connections like we saw previously,
but if we go to the Reporting tab,
you'll notice that there is no reports here for us to generate,
and it just says Inbox accounting must be
configured before reporting can be used.
So there is a couple of different ways to do this,
the first is through the UI, so if you click on the Configure Accounting link,
it brings up this little wizard or menu here and you'll want to
select Use inbox accounting, and then here,
the storage accounting for the logs, this is the data retention period.
I usually leave this set to the default of 12 months,
but you can change it to anything you like as well.
So once that's done, you can click Apply.
Now,
I'm not going to do that here because I want to
demonstrate the PowerShell method.
So to install accounting using PowerShell,
we'll open an elevated PowerShell command window,
and the command that we'll execute is Set‑RemoteAccessAccounting,
and we'll use the switch EnableAccountingType,
and we'll specify Inbox as the type.
And then I'll also add PassThru so that we can see that information.
And once that's done,
we'll have to close out of the Remote Access Management Console and reopen it.
And if we go to the Reporting tab,
you should now see that we have the ability to generate reports.
Now here is the challenge.
Of course, there is no data in this database, I literally just installed it.
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.