Results 1 to 3 of 3

Thread: DSQUERY to find user not logged in for 120 days

  1. #1
    Join Date
    Jan 2005
    Posts
    32

    DSQUERY to find user not logged in for 120 days

    I need some help to find out a syntax for dsquery that can show me the number of users how are not logged in for some 120 ways. Then I want to export the output on a Excel sheet. I am having multiple domain controllers here. I want to check all of them one by one. But somehow I found the process bit complicated and cannot found a working solution for the same.

  2. #2
    Join Date
    Oct 2004
    Posts
    45

    re: DSQUERY to find user not logged in for 120 days

    Try the following : dsquery user domainroot -name *smith -inactive 18. I am sure you would be able to understand the syntacx. Here you can find out the information on the basis of last name of users and for how much time the user is inactive. Later it is possible for you to export a txt find out of the same. You can use >c:\textfile.txt. That's all.

  3. #3
    Join Date
    Sep 2004
    Posts
    51
    Below are some links that can help you what you are trying. The link below gives you a complete list of all variables that are used in DSQuery. So you can refer the same and apply the one that you need.

    Dsquery
    Dsquery user

Similar Threads

  1. Replies: 3
    Last Post: 24-09-2009, 01:34 AM
  2. find period in days / hours excluding weekdays between two days?
    By Segvoia in forum Software Development
    Replies: 3
    Last Post: 19-06-2009, 11:17 AM
  3. Find user logged in with Powershell using WMI
    By Sean J in forum Software Development
    Replies: 3
    Last Post: 07-02-2009, 08:12 PM
  4. Replies: 1
    Last Post: 27-11-2008, 02:29 AM
  5. Replies: 3
    Last Post: 19-03-2008, 05:42 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,653,921.63951 seconds with 17 queries