Link to home
Create AccountLog in
Avatar of sstretchh
sstretchhFlag for United States of America

asked on

Find AD accounts that never logged in

I use this ability to find when accounts have logged in last.

In my 2003 Domain, I can go into ADUC, right-click on Saved Queries", select NEW -> QUERY, give it a name and description, select a point in my AD tree for the query to run, click "Define Query" and select 180 in the "Days since last logon" dropdown.

What the above doesn't do is show you accounts that have never been logged in. that the addt info tab still shows password needs set during first log in.

Is there a good LDAP query that can be ran to show users that have never logged in or a query that already exist ??
Avatar of Govvy
Govvy
Flag of United States of America image

dsquery user -inactive 24

Note query is in weeks instead of days
Avatar of sstretchh

ASKER

but this is a set amount of days, how do i do the search for users that have never logged in
ASKER CERTIFIED SOLUTION
Avatar of Mike Kline
Mike Kline
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
This is exactly what i was looking for, Thanks !!