Active Directory 2000 Password Exipration query on multiple user accounts

I need to know the password expiration dates on my Domain accounts for ALL domain accounts in my, well domain. There are approximately 500-1000.  I would like to export this information to an Excel spreadsheet if possible.  Is there any way to do this other than manually?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Assuming you have a list with user names (one name per line), you can use the following script; it will create a comma separated log file with the user name and password expiration date. Just define the list with the user names at the beginning.
For a quick glance at a single user, you can use acctinfo.dll, which will add another tab to the ADUC user profile:
Account Lockout and Management Tools

@echo off
set UserFile=C:\Temp\test.txt
set LogFile=C:\Temp\PwdExpires.txt
if exist "%LogFile%" del "%LogFile%"
echo Retrieving password expiration information ...
for /f "delims=" %%a in ('type "%UserFile%"') do call :process %%a
echo ... done.
goto leave

set User=%1
for /f "tokens=2*" %%a in ('net user %User% /domain ^| find /i "Password expires"') do set PwdExpires=%%b
echo %User%: %PwdExpires%
>>"%LogFile%" echo %User%,%PwdExpires%
goto :eof


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
WonderflubAuthor Commented:
THank you so much for the quick response I will try that right now.
WonderflubAuthor Commented:
It worked, you are amazing!!!  Thank you much!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Operating Systems

From novice to tech pro — start learning today.