## Active Directory Last Logon Reporter

Quickly generate AD Last Logon Reports from all your Domain Controller, results can be export to CSV or HTML.

Key Features:

• Report users true last logon time
• Export to CSV or HTML
• Search & filter on any column

## Report

Report includes users display name, logon name, domain controller, and last logon time.

## Automate

Reports can be automated using task scheduler. See below for details.

## Export

The report can easily be exported to CSV or HTML for further analysis or archiving.

## Easy

Built with PowerShell so it is easy to use, lightweight and requires no installation.

## Search

Search for any user in the table or filter results on any column.

## PowerShell

If you are into PowerShell you can completely customize the tool to meet your exact needs.

## How Does It Work?

AD Last Logon is a PowerShell tool that only takes 3 simple steps.....

## Step 1: Open Tool

PowerShell ISE is built into windows, so just open ISE then open the downloaded script. You can also just right click the script and click edit.

## Step 2: Click Run

In PowerShell ISE, click the run button.

## Step 3: Run the command Get-ADLastLogon

In the script pane type the following command and hit enter

Get-ADLastLogon

The tool will now connect to each domain controller and find the last logon time for each user.

Once completed results will be displayed in a grid.

You can click on any column to sort the results. The filter box can be used to limit results
to specific criteria like username or specific domain controllers.

## Export Results

To export results to CSV run this command in the script pane. Change the -ExportPath to whatever location you want.

Get-ADLastLogon -ExportCSV -ExportPath c:\path.csv

To export results to HTML run this command in the script pane.

 Get-ADLastLogon -ExportHTML -ExportPath c:\it\lastlogon.html

### Sample HTML Report

-command ". c:\scriptpath\get-adlastlogon.ps1; get-adlastlogon -ExportCSV -ExportPath c:\csvpath\lastlogon.csv"