Avatar of hmedme
hmedme

asked on 

Find Expired User Passwords on Server 2003 R2 Domain

Hello,

I am in need of help finding users accounts who's password is or will be expiring.  Many of my users are remote (mobile devices) and do not log into a workstation on the domain and do not get a indication their password will be expiring.  My domain controller is a Windows Server 2003 R2 SP2 install.  I have experience with Group Policy, but little with Power Shell and scripts.

Thank you for your time in advance.
Windows Server 2003Active Directory

Avatar of undefined
Last Comment
hmedme
Avatar of piattnd
piattnd

This link shows a vbscript that will do more than what you're looking for, so you'll want to trim it back.

Basically, the script (as it is in that example) will find users within a 14 day expiration period and generate an email to them.  You may not need to notify them via email, so that part is up to you.  The 14 day trigger point will be your notification that an account is within that 14 day period (that is configurable).

Let us know if you need help adjusting any of the code!
Avatar of Prashant Girennavar
ASKER CERTIFIED SOLUTION
Avatar of jmanishbabu
jmanishbabu
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of hmedme
hmedme

ASKER

Thanks for all the responses.  I will get back to this thread with results ASAP.

Thanks again.
Avatar of hmedme
hmedme

ASKER

Ok, I decided on giving Quest ActiveRoles Management Shell as shot as has other commands I can use.  I tried running the following but it returns no results.

Get-QADUser -AccountExpiresBefore "December 31, 2013"
Get-QADUser -AccountExpiresBefore "September 14, 2014"

The following command does return results:

Get-QADUser -CreatedAfter "January 1, 2009"

Thanks!
Avatar of hmedme
hmedme

ASKER

I think this nailed it:

Get-QADUser -Name * | select givenName,sn,name,PasswordExpires

Thank you all for your help.  Excellent range of answers and angles.
Windows Server 2003
Windows Server 2003

Windows Server 2003 was based on Windows XP and was released in four editions: Web, Standard, Enterprise and Datacenter. It also had derivative versions for clusters, storage and Microsoft’s Small Business Server. Important upgrades included integrating Internet Information Services (IIS), improvements to Active Directory (AD) and Group Policy (GP), and the migration to Automated System Recovery (ASR).

129K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo