Security Forums

Log in

FAQ | Search | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

How to view last password change date for a user in AD?

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Security Forums Index -> Exchange 2000 // 2003 // 2007 & Active Directory

Special offer!

TechGenix and SolarWinds have partnered to provide a fully-functional, free 21-day trial version of SolarWinds ipMonitor, the WindowsNetworking.com Readers' Choice Award Winner for monitoring applications, servers, and network devices to all visitors who join Security Forums. Sign up to Security Forums and get your copy today! Existing members can pick up a copy from the Members Area.

View previous topic :: View next topic  
Author Message
windude
New Member
New Member


Joined: 09 May 2007
Posts: 33


Offline

PostPosted: Mon Sep 17, 2007 6:14 pm    Post subject: How to view last password change date for a user in AD? Reply with quote

Is there anyway to view last password change date or days left before password expires for specified user?
Back to top
View user's profile Send private message
AdamV
SF Mod
SF Mod


Joined: 06 Oct 2004
Posts: 4602
Location: Leeds, UK

Offline

PostPosted: Mon Sep 17, 2007 7:46 pm    Post subject: Reply with quote

Yes. Oddly enough I started writing a blog post about a way to do it this morning. I'll post back when I've finished it.
_________________
"Due to global warming, eskimos now have 20 words for water" John O'Farrell
Meteor IT - Technical Consulting Services and Software Training Courses, Leeds, UK
Back to top
View user's profile Send private message Visit poster's website
cconk01
Forum Addict
Forum Addict


Joined: 10 Nov 2005
Posts: 456
Location: Maryland

Offline

PostPosted: Mon Sep 17, 2007 9:17 pm    Post subject: Reply with quote

I too am defiently interested. Smile
Back to top
View user's profile Send private message
windude
New Member
New Member


Joined: 09 May 2007
Posts: 33


Offline

PostPosted: Mon Sep 17, 2007 9:47 pm    Post subject: Reply with quote

I await your blog entry.
Back to top
View user's profile Send private message
AdamV
SF Mod
SF Mod


Joined: 06 Oct 2004
Posts: 4602
Location: Leeds, UK

Offline

PostPosted: Mon Sep 17, 2007 9:53 pm    Post subject: Reply with quote

Finished!
Read about how to install and use AcctInfo.dll to access additional AD properties here

A short extract from VeroBlog, where I wrote:
AcctInfo is a dll file which is part of the free tools for the Windows 2003 resource kit, but can be used on 2003 or 2000 machines. It enables extended properties for the Active Directory Users and Computers (ADUC) MMC snapin.

This is one of those tools which is really useful, if only you knew it was available. Then of course you have to get round to installing it on all the machines where you might need to use it. However, once you have started using it you will be very pleased that you bothered.

_________________
"Due to global warming, eskimos now have 20 words for water" John O'Farrell
Meteor IT - Technical Consulting Services and Software Training Courses, Leeds, UK
Back to top
View user's profile Send private message Visit poster's website
windude
New Member
New Member


Joined: 09 May 2007
Posts: 33


Offline

PostPosted: Mon Sep 17, 2007 10:08 pm    Post subject: Reply with quote

Thanks AdamV! Will this work on Windows XP with the resource kit installed? I ran regsvr32.exe acctinfo.dll and didn't see a Additional Account Info tab under my user properties. What type of privileges do I need for this to work?
Back to top
View user's profile Send private message
cconk01
Forum Addict
Forum Addict


Joined: 10 Nov 2005
Posts: 456
Location: Maryland

Offline

PostPosted: Mon Sep 17, 2007 10:42 pm    Post subject: Reply with quote

I had problems on my XP machine leaving the dll in the default location. I moved it to the root and used regsvr32 C:\Acctinfo.dll. Worked like a charm. As for privilges to install it locally you will need local admin rights im accuming to register the service.
Back to top
View user's profile Send private message
windude
New Member
New Member


Joined: 09 May 2007
Posts: 33


Offline

PostPosted: Tue Sep 18, 2007 6:17 pm    Post subject: Reply with quote

The Additional Account info tab seems to be only visible when I manually browse for a user in ADUC. When I use the Find function, the tab doesn't appear under the user's properties window. Is this the same case for everyone else? Is there a way to get it to work using the Find?
Back to top
View user's profile Send private message
AdamV
SF Mod
SF Mod


Joined: 06 Oct 2004
Posts: 4602
Location: Leeds, UK

Offline

PostPosted: Wed Sep 19, 2007 1:40 pm    Post subject: Reply with quote

You are right, that seems to be the behaviour anywhere except in ADUC directly.
It does not work in the SBS management console, nor from a "find" result. Same behaviour whether you leave the DLL in resource kit\tools or copy it to windows\system32 (and re-register it)

I've updated the blog post and given credit to Windude for pointing this out. I have not updated the info about where to install and register it, since it does not seem to make any difference.
_________________
"Due to global warming, eskimos now have 20 words for water" John O'Farrell
Meteor IT - Technical Consulting Services and Software Training Courses, Leeds, UK
Back to top
View user's profile Send private message Visit poster's website
baileyk9
Just Arrived
Just Arrived


Joined: 22 Aug 2007
Posts: 7
Location: Raleigh, NC

Offline

PostPosted: Wed Sep 19, 2007 7:30 pm    Post subject: Reply with quote

You could also use CSVDE to look at the Pwd-Last-Set Attribute (pwdLastSet) value. This is a rather simple approach.

for example, from a command line:
CSVDE -f outputfile.csv -r objectClass=user -l "pwdLastSet"
for all users.
or for a specific user named BaileyK9:
CSVDE -f outputfile.csv -r "(&(objectClass=user)(name=BaileyK9))" -l "pwdLastSet"


_Pwd-Last-Set Attribute_
(from http://msdn2.microsoft.com/en-us/library/ms679430.aspx):

The date and time that the password for this account was last changed. This value is stored as a large integer that represents the number of 100 nanosecond intervals since January 1, 1601 (UTC). If this value is set to 0 and the User-Account-Control attribute does not contain the UF_DONT_EXPIRE_PASSWD flag, then the user must set the password at the next logon.


Last edited by baileyk9 on Wed Sep 19, 2007 7:45 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
baileyk9
Just Arrived
Just Arrived


Joined: 22 Aug 2007
Posts: 7
Location: Raleigh, NC

Offline

PostPosted: Wed Sep 19, 2007 7:39 pm    Post subject: Reply with quote

also, using CSVDE (or other tools, LDIFDE, etc), this attribute might be useful regarding the original question:

"accountExpires"

_Account Expires_
"accountExpires"
The Account Expires control displays the date that the account will expire at the end of. The accountExpires attribute is stored as the date that the account expires on. Because of this, the date displayed in the Account Expires control will be displayed as one day earlier than the date contained in the accountExpires attribute.

(http://msdn2.microsoft.com/en-us/library/ms677980.aspx)

<> Bailey
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Security Forums Index -> Exchange 2000 // 2003 // 2007 & Active Directory All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Community Area

Log in | Register