Hello,
I'm trying to generate report for all users last time they logged on to the domain controller. Is there any script or command to find out.
Regards,
Technology Tips and News
Hello,
I'm trying to generate report for all users last time they logged on to the domain controller. Is there any script or command to find out.
Regards,
yes - look in Script Gallery.
Hi Dns resolvation,
You can alsp start from this script to query last logon time via the System.DirectoryServices.DirectorySearcher object:
https://gallery.technet.microsoft.com/scriptcenter/Get-Active-Directory-user-246f17c7
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
Hi
I use the lastlogontimestamp & the quest powershell AD cmdlets
http://software.dell.com/products/activeroles-server/powershell.aspx
add-PSSnapin quest.activeroles.admanagement Get-QADUser -SizeLimit 0 -SearchRoot 'ou.domainname' -IncludedProperties SamAccountName,lastlogontimestamp |
select-object SamAccountName,lastlogontimestamp |
Out-GridView
Regards
Steve