Avatar of seaninman
seaninman
Flag for United States of America asked on

VB Script Needed to query information in Active Directory

I was wondering if anyone had a VBScript that could be ran against a specific OU and output the Users First and Last name for all accounts where the password will expire in a defined number of days, as well as the date the password expires for each user.

CSV output of something like:

Username,First Name,Last Name,PWD Expiration date
VB Script

Avatar of undefined
Last Comment
RobSampson

8/22/2022 - Mon
RobSampson

Hi, see if this question gets close to what you're after:
https://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_26412856.html#a33480222

Regards,

Rob.
seaninman

ASKER
All that information is good to have, however I am really after adding a column to show the date the password will expire.
RobSampson

That's no problem.  I will add that for you on Monday.

Rob.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
RobSampson

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question