You should be doing an ADO lookup for objects of objecttype user in AD, and
then loop over all the sAMAccountname values retrieved, rather than reading
names from a file, unless there are a very small number of names (<100).

 

Sincerely,

 

Jeffrey and Mary Jane Harris

VIPCS (Very Important Professional Computing Services)

 

  _____  

From: Brumbaugh, Luke [mailto:[email protected]] 
Sent: Wednesday, November 24, 2010 12:32 PM
To: NT System Admin Issues
Subject: RE: VBS script to do lastlogon older than 60 days.

 

http://www.rlmueller.net/Programs/LimitedLastLogon.txt

 

Program needs alittle tweaking but it is a start

 

From: Don Guyer [mailto:[email protected]] 
Sent: Wednesday, November 24, 2010 11:15 AM
To: NT System Admin Issues
Subject: RE: VBS script to do lastlogon older than 60 days.

 

Yeah, give it up!

 

Please.

 

:-)

 

Don Guyer

Systems Engineer - Information Services

Prudential, Fox & Roach/Trident Group

431 W. Lancaster Avenue

Devon, PA 19333

Direct: (610) 993-3299

Fax: (610) 650-5306

[email protected]

 

From: Cameron [mailto:[email protected]] 
Sent: Wednesday, November 24, 2010 11:12 AM
To: NT System Admin Issues
Subject: Re: VBS script to do lastlogon older than 60 days.

 

Care to share?

On Mon, Nov 22, 2010 at 7:29 AM, Brumbaugh, Luke
<[email protected]> wrote:

The script I found for lastlogon takes in account all DCs

 

 

From: Free, Bob [mailto:[email protected]] 
Sent: Friday, November 19, 2010 3:00 PM 


To: NT System Admin Issues

Subject: RE: VBS script to do lastlogon older than 60 days.

 

You realize that lastlogon is a unique value on each DC and that has to be
account for, right?

 

From: Brumbaugh, Luke [mailto:[email protected]] 
Sent: Friday, November 19, 2010 11:37 AM
To: NT System Admin Issues
Subject: RE: VBS script to do lastlogon older than 60 days.

 

Thanks for quick response but then I found datediff(d, lastlogon, date)
which will give me number of days. 

Now all I need to do is pull supervisor email and send a canned email with
the info.  Wish me luck =)

 

 

 

From: Sean Martin [mailto:[email protected]] 
Sent: Friday, November 19, 2010 1:45 PM
To: NT System Admin Issues
Subject: Re: VBS script to do lastlogon older than 60 days.

 

Does this help?

 

http://blogs.technet.com/b/heyscriptingguy/archive/2010/01/27/dandelions-vcr
-clocks-and-last-logon-times-these-are-a-few-of-our-least-favorite-things.as
px

 

- Sean

On Fri, Nov 19, 2010 at 9:41 AM, John Cook <[email protected]> wrote:

Oldcomp should give you a good start 
John W. Cook 
Systems Administrator 
Partnership for Strong Families

 

  _____  

From: Brumbaugh, Luke <[email protected]> 
To: NT System Admin Issues <[email protected]> 
Sent: Fri Nov 19 13:36:25 2010
Subject: VBS script to do lastlogon older than 60 days. 

I am getting pieces but I am looking for a vbs script to give me lastlogon
of users older than 60 days that I can then send an email to supervisor
giving user and number of days since last logon.

I have fully populated AD so shouldn't be too hard.

 

Just need to get over the lastlogon number of days part.

 

TIA

 

Luke L. Brumbaugh

Network Engineer

Butler Animal Health Supply

Ph:(614) 659-1736

 



**********************************************************************

CONFIDENTIALITY NOTICE - The information transmitted in this message is
intended only for the person or entity to which it is addressed and may
contain confidential and/or privileged material. Any review, retransmission,
dissemination or other use of this information by persons or entities other
than the intended recipient is prohibited. If you received this in error,
please contact the sender and destroy all copies of this document. Thank
you.

Butler Schein Animal Health

********************************************************************** 

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

 

  _____  

CONFIDENTIALITY STATEMENT: The information transmitted, or contained or
attached to or with this Notice is intended only for the person or entity to
which it is addressed and may contain Protected Health Information (PHI),
confidential and/or privileged material. Any review, transmission,
dissemination, or other use of, and taking any action in reliance upon this
information by persons or entities other than the intended recipient without
the express written consent of the sender are prohibited. This information
may be protected by the Health Insurance Portability and Accountability Act
of 1996 (HIPAA), and other Federal and Florida laws. Improper or
unauthorized use or disclosure of this information could result in civil
and/or criminal penalties.
Consider the environment. Please don't print this e-mail unless you really
need to.

This email and any attached files are confidential and intended solely for
the intended recipient(s). If you are not the named recipient you should not
read, distribute, copy or alter this email. Any views or opinions expressed
in this email are those of the author and do not represent those of the
company. Warning: Although precautions have been taken to make sure no
viruses are present in this email, the company cannot accept responsibility
for any loss or damage that arise from the use of this email or attachments.

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

 

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

 

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to