To whom it may concern
I need to do an Active Directory Cleanup for one of our clients. The Manager is not always sure what accounts are used and what PC's is still active. Is there a way either via Command Prompt or Powershell script that I can run that will show me all the user accounts in AD and when last they logged onto the server. If we can see the workstations in AD and when last they made connectivity, that would be a bonus.
Basically I need to remove the unused accounts and workstations that is no longer used. The report will help me and the manager make the correct decision and not deleting a working account.
Specs of Server on Site:
Intel Xeon CPU E5-2609 v3 @ 1.90GHz (2 processors)
Windows Server 2012 R2 Standard 64 bit
Please let me know if you require further information.