Solved

Active Directory User password getting expired

Posted on 2016-11-07
3
41 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 79

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

772 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