Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm looking for a program with VB6.00 to Alarm Me when ever any Windows User Account expiring in x days?
There are more than 100 User account in my Network and they expire frequently and Im not allow to change them to "Never expire" situation.
Please Help.
Posted
Comments
Sergey Alexandrovich Kryukov 2-Apr-15 10:44am    
VB6? Hm... Please see: this answer on VB6.
—SA
Shararehmirbagheri 2-Apr-15 11:58am    
no, I didnt get any answer from the link. sorry
Sergey Alexandrovich Kryukov 2-Apr-15 12:02pm    
I'm sorry. It's not supposed to be answer on using VB6, it's supposed to be an answer on what to do. Perhaps you know better what to waste your time on and don't need any advice.
—SA

1 solution

Shame it's VB6. However...

You can use the "NET USER[^]" command to get a list of user accounts on a domain AND to get information about those accounts.

The information includes when the password is due to expire.

Write a program to call net user first to get the list of users (this means that as new users are added there is no further work for you to do) and then for each to collect the information you need. An example in VB6 of running a program and capturing the output can be found here[^]

You can then use the windows scheduler[^] to run the program regularly
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900