Saved Querys Windows 2003

  • Thread starter Thread starter Stephen Strom
  • Start date Start date
S

Stephen Strom

I have looked and looked but I cannot find any information on how to make
saved queries work. The one I want is last logon.

Can someone please point me in the right direction.

We are running at Server 2003 Domain Functional level

Thanks
 
lastlogonTimestamp is the user object attribute that will give you this but
you can also dsquery. This command will search for any accounts not used for
4 weeks.

dsquery user domainroot -inactive 4

This next command will search for and disable any accounts not used for 4
weeks.

dsquery user domainroot -inactive 4|dsmod user -disabled yes
 
Back
Top