A. A Server 2008 domain controller (DC) can log successful and failed logon attempts. The following code will create a report of the last logon of the users in the specified containers:

The following example shows the code input and resulting output on my savilltech server: