Tested on Windows Server 2022 The script will query Active Directory for all user accounts and display their usernames along with their last logon dates in a table format.