Solved

deleting old Computer accounts 2000/2003 domain

Posted on 2004-09-23
4
285 Views
Last Modified: 2010-04-17
Does anyone have the following code in VB6?

1.  Code that will delete a computer account

2. Code to list computer account updated dates to find old accounts


0
Comment
Question by:bluedragon99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 22

Accepted Solution

by:
cookre earned 250 total points
ID: 12134394
Well, it's VBScript, not VB6, but it translates easily:

Delete account:
http://www.microsoft.com/technet/community/scriptcenter/user/scrug13.mspx

Alas, I can't find a most recent update date for user accounts.
0
 

Assisted Solution

by:waitandsee123
waitandsee123 earned 250 total points
ID: 12150551
In question 2. Code to list computer account updated dates to find old accounts

Would the last logon date and time be an acceptable substitute for account update dates?

If so, and if you can get the value from a command shell command, you can call out the net user command for local accounts.

net user "whateverusername" | find /i "Last Logon"

OR for domain user accounts

net user "whateverusername" /domain | find /i "Last Logon"

Then just parse the strings into the data you want to retrieve.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AutoIncrement column based of FK 11 64
Output in PHP throwing alignment of data off issue 12 57
VB.NET String Settings and Temp Folder Question 3 71
learn programming 8 70
This is an explanation of a simple data model to help parse a JSON feed
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question