Powershell – get last logon timestamp AD users

Powershell – Export AD users to CSV

########################################################### # Evert-Jan van de Keuken # IT-Solved | www.it-solved.nl ########################################################### $path = split-path -parent $MyInvocation.MyCommand.Definition #Create a variable for the date stamp in the log file $LogDate = get-date -f yyyyMMddhhmm #Define CSV and log file location variables #they have to be on the same location as the script $csvfile = $path + “\ALLADUsers_$logDate.csv” …read more →