====== Active Directory User and Computer Audit ====== ===== Users ===== - Run the following in a **administrator Powershell:**Get-ADUser -Filter * -Properties “LastLogonDate” | export-csv -path ad-user1.csv - Open in Excel and sort by LastLogonDate Ascending - Consider removing accounts that are inactive for over a year - Make a script with the following: Disable-ADAccount -Identity ===== Comptuers ===== - Run the following in a **administrator Powershell:**Get-ADComputer -Filter * -Properties LastLogonDate,operatingSystem,operatingSystemVersion,IPv4Address | export-csv -path ad-computers1.csv - Open in Excel and sort by LastLogonDate Ascending - Consider removing accounts that are inactive for over a year - Make a script with the following: Disable-ADAccount -Identity