Newsgroups: microsoft.public.scripting.vbscript
From: "Richard Mueller [MVP]" <rlmueller-nos...@ameritech.net>
Date: Mon, 15 Dec 2003 13:02:59 -0600
Local: Mon 15 Dec 2003 19:02
Subject: Re: W2003 domain computer account script
Robert wrote: Hi, > Does anyone out there have a script that I can run on the > domain that will tell me when the last time a computer > account has been accessed.I need to determine whether or > not I can delete old workstation accounts without having > to go a touch each one manually I have a sample VBScript program that retrieves the lastLogon date for all http://www.rlmueller.net/Last%20Logon.htm To modify for computers instead of users, change this line: strFilter = "(&(objectCategory=person)(objectClass=user))" which is in the loop that queries each Domain Controller, to this: strFilter = "(objectCategory=computer)" The program should be run at a command prompt using the cscript host. The While this program will give you what you requested, it can take awhile to http://www.rlmueller.net/PwdLastChanged.htm The same modification must be made to this program to report on computers -- You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||