Expired computers, computers that have not logged on recently, can be something you need to investigate. A client computer that has not logged on to the domain for, say, a month, could have been stolen. Such a computer could also be an under-used asset that is a candidate for redeployment. If it's a server that has not logged in for a month, it could indicate a computer that is non-functioning and one you should investigate.
This recipe is a variation on the Report on AD Users
recipe.
- Build the report header:
$RKReport = ''$RkReport += "*** Reskit.Org AD Unused + "Computer Report`n"$RKReport += "*** Generated [$(Get-Date)]`n"$RKReport += "***********************************`n`n"
- Report on computer accounts that have not logged in in past 14 days:
$RkReport += "*** Machines not logged on in past 14 days`n"$FortnightAgo = (Get-Date).AddDays(-14)$RKReport += Get-ADComputer...