[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Calculate Password Age for Windows Servers using C#

Asked by Admin_Chevron in C# Programming Language, Windows 2003 Server

Tags: C#, Windows 2000/2003/2008 Server, NetUserGetInfo, Password Age

Hi,

I need to write a tool in C# that can query multiple servers for their local account details and then output these details into a CSV file which is automatically emailed to the local administrators. The main aim of the tool is to query the password age of each local account, i.e. when was the password last reset.

I have found some small tools that can do it for me, and with some batch work I can get it to query all the servers and return a csv file etc. However, it is half manual half automated. I would like to automate the entire process and to also add some additional funcationality.

I have found some VB6 code, but am looking for any C# code or suggestions on how to do this.

Some of the tools I looked at are:
netpwage and
UserDump

Also have a look at: http://vbnet.mvps.org/index.html?code/network/getpasswordage.htm

Any suggestions?
[+][-]09/08/09 04:49 AM, ID: 25280840Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/08/09 04:55 AM, ID: 25280875Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/08/09 07:33 AM, ID: 25282241Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/09/09 01:15 AM, ID: 25289129Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/09/09 06:03 AM, ID: 25290754Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/22/09 01:41 AM, ID: 25390670Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/22/09 10:50 AM, ID: 25395549Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/22/09 01:33 AM, ID: 25631843Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/27/09 12:42 AM, ID: 25669880Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/20/09 06:58 PM, ID: 25876217Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625