The script providing this output is
PowerShell Code
Double-click the code block to select all.$results.Text=Get-ADUser -Filter "DisplayName -eq '$($EntryBox.text)'" -Properties DisplayName, sAMAccountName, mail, lastlogon, extensionattribute5, PasswordLastSet, PasswordExpired, PasswordNeverExpires, buMemberOf, msExchOmaAdminWirelessEnable | Out-String $results.Focus()$results is the output window
$EntryBox is the text field the 1st line guys enter the users name into
The output I receive is (the 2 date outputs are highlighted in red)
buMemberOf : {Gartner, Library Patron, Current Employee}
DisplayName : Jihn Doe
DistinguishedName : CN=John Doe,OU=OU,DC=domain,DC=com
Enabled : True
GivenName : John
lastlogon : 130607135752597276
mail : jdoe@domain.com
Name : John Doe
ObjectClass : user
ObjectGUID : d5244bee-482f-4558-a260-9cc47a8627fb
PasswordExpired : False
PasswordLastSet : 10/23/2014 8:53:59 AM
PasswordNeverExpires : False
SamAccountName : jdoe
SID : S-1-5-21-1202660629-117609710-682003330-38660
Surname : Doe
UserPrincipalName : jdoe@domain.com
Wht are these different, they are both date fields in AD, and how can I make lastlogon a useful/readable attribute in this script?