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
Solved

deleting old Computer accounts 2000/2003 domain

Posted on 2004-09-23
4
279 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

808 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