How to get all Active Directory users account last log on time and export Excel

This sample demonstrates how to get all Active Directory users account last logged on time

4.4 Star
6,494 times
Add to favorites
Active Directory
E-mail Twitter Digg Facebook
  • Can be misleading
    1 Posts | Last post September 18, 2018
    • Note that this script can be misleading, as it only queries the local AD DC. The script will only be accurate if you only have 1 DC in your domain, which makes the script kinda pointless for 99% of labs/organisations/domains!
  • computer
    1 Posts | Last post March 28, 2017
    • Can this script also include computers that users logged on?
  • output file
    1 Posts | Last post November 03, 2016
    • Can you give an example of the correct way to format the command to write the input to c:\temp
       Total Powershell noob