On a closed network, my administrator needed a script/automated tool to disable any users in Active Directory who had not logged in for 90 days. I checked the GUI to see the users that had not logged in recently. There were 5. I opened up a command window and showed him dsquery. When I ran "dsquery user", I got the expected results. I then ran "dsquery user -inactive 13" and only received 1 user as the result. I thought maybe the others were borderline on the 90-91 days, so I changed my query to "dsquery user -inactive 1" and still only received the 1 user for the result. After adding in the proper ou, dc, dn...I get the same results. I have looked on this site and researched online, but I cannot find anyone that has had this issue. I hope I am just doing something wrong, but this query is pretty basic. Could there be a server setting that is causing just the 1 user to be returned. I would think that it was a setting if I received no results. Thanks in advance for any help troubleshooting this.