Solved

Active Directory User password getting expired

Posted on 2016-11-07
3
46 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 80

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html?cid=Gene_Skyport) provided 218 attendees with a step-by-step guide for…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

756 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