Solved

Active Directory User password getting expired

Posted on 2016-11-07
3
28 Views
Last Modified: 2016-11-09
Hi,

I need to extract one report of users whos password is getting expired in few days is there any solution for the same.
0
Comment
Question by:yogesh mehta
3 Comments
 

Author Comment

by:yogesh mehta
ID: 41878174
tried this command but its not working
Search-ADAccount -PasswordExpiring -DateTime 10/15/2009 | where {$_.ObjectClass -eq 'user'} | FT Name,ObjectClass -A
0
 
LVL 6

Accepted Solution

by:
Niten Kumar earned 500 total points
ID: 41878230
Search by number of days
The following example demonstrates how to find all the users whose accounts are about to expire in the next 90 days:
Search-ADAccount -AccountExpiring -TimeSpan 90.00:00:00 | where {$_.ObjectClass -eq 'user'} | FT Name,ObjectClass –A

Open in new window


The PasswordExpiring option doesn't exist for the Search-ADAccount cmdlet on 2008 R2.
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 41878285
you can add the WMF framework to upgrade your powershell.. note password expiring is in DAYS.Hours:Minutes:Seconds
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Do you have users whose passwords are expiring and they are constantly calling you?  Well I sure did and needed a way to put an end to this.  We have a lot of remote users which would not be notified that their passwords were expiring since they wer…
Resolve DNS query failed errors for Exchange
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now