Question : How to use DSQUERY to get a list of the active users.

I am wanting to just get the active users in a domain i.e  the ones who have logged on in the last week.
I have run from the command: dsquery user - active 1 >>c:\active.txt but it does not seem to like the word active. Is DSQUERY only to find out inactive details

Answer : How to use DSQUERY to get a list of the active users.

You have the possibility to query for inactive users that hasn't logged on the last weeks by using -inactive parameter, but there's not a -active parameter for the query you want.
Random Solutions  
 
programming4us programming4us