question

AshrafElyazidElsayedAbdelrazig-1079 avatar image
0 Votes"
AshrafElyazidElsayedAbdelrazig-1079 asked DSPatrick commented

user account status and last login date

how to get user dispalyname, samaccount, last login date, and account status (Enable/Disable) for all user in domain with 2 DC

windows-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DSPatrick avatar image
0 Votes"
DSPatrick answered DSPatrick commented

You can follow along here.
https://www.webservertalk.com/find-last-logon-users-or-computers

--please don't forget to upvote and Accept as answer if the reply is helpful--



· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for replying my question :)

the article is nice and very useful, I run the script and its collected user last login date but no information about the account status if it is disabled or enabled.

my target is to generate report that shows user display name, samaccount name, last login date and account status (both cases disabled or enabled)

0 Votes 0 ·