Hi @Art ODell ,
maybe these links are helpful:
https://shellgeek.com/powershell-get-ad-user-not-logged-in-x-days/
https://www.winsysadminblog.com/2017/07/get-a-list-of-users-in-active-directory-who-have-not-logged-in-for-specified-number-of-days-using-powershell/
In this examples the command Get-AdUser
is used and with -Searchbase
you can limit the search on a OU:
https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-aduser?view=windowsserver2022-ps#example-1--get-all-of-the-users-in-a-container
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten