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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top