This is an old revision of the document!
Get-ADUser -Filter * -Properties “LastLogonDate” | export-csv -path ad-user1.csv
Disable-ADAccount -Identity <SamAccountName>
Get-ADComputer -Filter * -Properties LastLogonDate,operatingSystem,operatingSystemVersion,IPv4Address | export-csv -path ad-computers1.csv Disable-ADAccount -Identity MHESSELAPTOP$