Results 1 to 4 of 4

Thread: Displaying expiry dates of users in Active Directory

  1. #1
    Join Date
    Mar 2009
    Posts
    2

    Displaying expiry dates of users in Active Directory

    Hi guys,

    I am trying to display a list of all AD users but with their expiry dates as well. I tried just making a list of all users and adding a column to display the expiry date but this is not an option. I was wondering if anyone can help me out?
    All i want to do is just put the report in to a delimited text document.

    Cheers

  2. #2
    Join Date
    Dec 2008
    Posts
    322

    Re: Displaying expiry dates of users in Active Directory


  3. #3
    Join Date
    Jan 2008
    Posts
    3,755

    Re: Displaying expiry dates of users in Active Directory

    You can dump this information to a text file using the command below.

    Either run it on a 2003 server or on an XP machine with the adminpak installed.

    dsquery user -limit 0 | dsget user -samid -acctexpires > list.txt

  4. #4
    Join Date
    Mar 2009
    Posts
    2

    Re: Displaying expiry dates of users in Active Directory

    Thats great, worked a treat.

    Thanks for that

Similar Threads

  1. Auditing users on Active Directory server
    By poke147 in forum Active Directory
    Replies: 3
    Last Post: 09-09-2014, 05:19 PM
  2. Active Directory Users missing attribute
    By tim.creemers in forum Active Directory
    Replies: 4
    Last Post: 27-03-2012, 04:42 PM
  3. Replies: 2
    Last Post: 01-05-2009, 11:20 PM
  4. Replies: 1
    Last Post: 09-10-2007, 02:23 AM
  5. Replies: 1
    Last Post: 18-05-2006, 01:31 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,713,924,950.01977 seconds with 17 queries