bwya77 / PSHTML-AD-Report

Create a high level interactive HTML report for you Active Directory environment using PowerShell
https://thelazyadministrator.com/2018/12/04/get-an-active-directory-interactive-html-report-with-powershell/
MIT License
376 stars 132 forks source link

Last Log on Date not populating #46

Open kasper334-ghost opened 5 years ago

kasper334-ghost commented 5 years ago

The Script is awesome, hoever i noticed that Last Log on Date not populating in the users Tab.

openmoto commented 4 years ago

Same here.

bramyuh commented 4 years ago

add "$LastLogon = $AttVar.lastlogon" to:

$Name = $User.Name $UPN = $User.UserPrincipalName $Enabled = $AttVar.Enabled $EmailAddress = $AttVar.EmailAddress $AccountExpiration = $AttVar.AccountExpirationDate $LastLogon = $AttVar.lastlogon $PasswordExpired = $AttVar.PasswordExpired $PasswordLastSet = $AttVar.PasswordLastSet $PasswordNeverExpires = $AttVar.PasswordNeverExpires $daysUntilPWExpire = $daystoexpire