To find out the number of Users in the Domain whose Password is Set To Never Expire
The attached script will scan the AD Domain and list all user accounts in the domain whose password has been set to "Never Expire".
This is a handy script for security, auditing and maintenance reasons.
Windows Admin can use this script to implement best-practices for the organisation's AD Domain.
Steps To Use This Script as shown below;
- In case you are executing this script on 64-Bit OS, e.g. Windows 2008 R2, open "cmd.exe" from the %windir%\SysWow64 Folder
- Usage --> CScript UsrAccntNeverExpire.vbs > Result.txt
- Check the text file, Result.txt, for details
Tested on Windows2008 R2. Even you import the result to txt fole OR csv file