Computing.Net > Forums > Windows XP > Query AD for Account Expiration

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Query AD for Account Expiration

Reply to Message Icon

Name: blink
Date: April 10, 2006 at 00:56:05 Pacific
OS: XP
CPU/Ram: P4
Product: HP
Comment:

Is it possible tot query AD for accounts that'll expires this month? Or between two set dates?

We want to automatically filter for this so we can send the people who use this account an automatic warning.



Sponsored Link
Ads by Google

Response Number 1
Name: Ed in Texas.
Date: April 10, 2006 at 02:40:22 Pacific
Reply:

blink, sounds like it oughta be a rather simple programming task. All that's required is to open it, read it, and test each entry. Those which expire between 'x' and 'y' get written in a seperate logfile which is then printed, etc.
If 'x' and 'y' are variables, you can choose their values each time the program is run (monthly?).
HTH.
Ed in Texas.


0

Response Number 2
Name: tonysathre
Date: April 10, 2006 at 08:56:57 Pacific
Reply:

this should work for the account password expiration. is that what you mean by accounts that expire?


0

Response Number 3
Name: blink
Date: April 11, 2006 at 01:48:07 Pacific
Reply:

Ed in texas:

How would I program this?

tonysathre:

No I mean accounts that expire. When you crack open user props you can enter an account expiration date.


0

Response Number 4
Name: tonysathre
Date: April 11, 2006 at 11:07:39 Pacific
Reply:

sorry the URL didnt show up for some reason.

try some google queries like this:

filetype:vbs account expiration
filetype:vbs account expires

and so on...

try this script:

AD Script


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Hard drive gone, need fre... Sharing problem



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Query AD for Account Expiration

Request for Account and Password
    Summary: Hi, I would like the system to ask me that during booting for account and password. Currently it simply loads without any question and anybody can enter... Thankyou. Zennon ...
www.computing.net/answers/windows-xp/request-for-account-and-password/143499.html

At Start Up Ad for Spyware
    Summary: After my computer loads all programs at Start Up, an ad for Micro Trend suddenly appears. I have to X it out. How can I get rid of this? ...
www.computing.net/answers/windows-xp/at-start-up-ad-for-spyware/175078.html

2nd account settings won't save
    Summary: A you sure you added her account to the Local Admin Group? Life's more painless for the brainless....
www.computing.net/answers/windows-xp/2nd-account-settings-wont-save/165449.html