Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Exporting Last Logon Time

$
0
0

I had a script that export the last logon time:

Get-ADUser -Filter * -Property LastLogonTimestamp | Select SamAccountName,@{Name='Last Logon';Expression={$_.LastLogonTimeStamp.ToString()}} | Export-CSV C:\Export1.csv -NoTypeInformation

i want to add the display name of the accounts, 

do yours have any solution??


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>