Hello
Thank you for your question and reaching out. I can understand you are having query\issues related to
You can use below simple PowerShell to find Inactive computers, change Timespace value as per your need .
Search-ADAccount -ComputersOnly -AccountInactive -TimeSpan 90 | select name
-------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--