


RSAT is a group of tools that includes the Active Directory PowerShell Module, which Search-AdAccount is a part of. (Was it LastLogonDate, LastLogonTimestamp, DateModified, or LastLogon I wanted?)īefore you can use the Search-AdAccount cmdlet, you must first install Remote Server Administration Tools (RSAT). What people aren't seeing is that the Search-AdAccount cmdlet is already doing the heavy lifting for you! By using Search-AdAccount, you don't have to mess with the nuances that come with the advanced filter - or remember which AD attribute to use. Whatever the case, a lot of people are overlooking an extremely powerful and easy-to-use method to find these stale accounts- the Search-AdAccount cmdlet. Perhaps the Get verb tends to be used more often than the Search verb.
