Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Lastlogon attribure and performance
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jesper Ravn  
View profile  
 More options Nov 10 2009, 11:52 am
Newsgroups: microsoft.public.windows.server.scripting
From: "Jesper Ravn" <jesper_r...@hotmail.com>
Date: Tue, 10 Nov 2009 12:52:09 +0100
Local: Tues, Nov 10 2009 11:52 am
Subject: Lastlogon attribure and performance
Hello

I have created a small application in VB.net where I query AD information.
In the user section I can retrive LastLogon, by query all DC.
My main concern though, is the performance when I list 3000-5000+ users in a
listview.
What is your experience with LastLogon and performance where the enviroment
host mutiple Domain Controlleres in branch office
Should I go down that road or should I pull the LastLogon value from a basic
inventory (Logon script + SQL).
Im already using the LastlogontimeStamp to determine old users and
computers, but the lastlogon attribute, are more up to date and are often
requeted by helpdesk staff.

Thanks,

/Jesper


    Forward  
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.
Richard Mueller [MVP]  
View profile  
 More options Nov 10 2009, 4:20 pm
Newsgroups: microsoft.public.windows.server.scripting
From: "Richard Mueller [MVP]" <rlmueller-nos...@ameritech.nospam.net>
Date: Tue, 10 Nov 2009 10:20:40 -0600
Local: Tues, Nov 10 2009 4:20 pm
Subject: Re: Lastlogon attribure and performance

"Jesper Ravn" <jesper_r...@hotmail.com> wrote in message

news:uLpj9wfYKHA.1648@TK2MSFTNGP05.phx.gbl...

> Hello

> I have created a small application in VB.net where I query AD information.
> In the user section I can retrive LastLogon, by query all DC.
> My main concern though, is the performance when I list 3000-5000+ users in
> a listview.
> What is your experience with LastLogon and performance where the
> enviroment host mutiple Domain Controlleres in branch office
> Should I go down that road or should I pull the LastLogon value from a
> basic inventory (Logon script + SQL).
> Im already using the LastlogontimeStamp to determine old users and
> computers, but the lastlogon attribute, are more up to date and are often
> requeted by helpdesk staff.

3000-5000 users is not a lot, unless you are binding to the user objects. I
use ADO to query the DC's for all users in bulk (you must turn on paging).
The number of DC's and the speed of the links is more important. I retain
the largest lastLogon value for each user in a dictionary object. Again,
5000 entries is not a lot, and a dictionary object should be more efficient
than an array. The query for lastLogon should be separate from the query for
other attributes that are replicated.

A VBScript example is linked here:

http://www.rlmueller.net/Last%20Logon.htm

I've done similar in classic VB. I added a reference to the Microsoft
Scripting Runtime (scrrun.dll) for the dictionary object, and another for
Microsoft ActiveX Data Objects. I haven't done it in VB.NET.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


    Forward  
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.
Jesper Ravn  
View profile  
 More options Nov 11 2009, 2:39 pm
Newsgroups: microsoft.public.windows.server.scripting
From: "Jesper Ravn" <jesper_r...@hotmail.com>
Date: Wed, 11 Nov 2009 15:39:56 +0100
Local: Wed, Nov 11 2009 2:39 pm
Subject: Re: Lastlogon attribure and performance

"Richard Mueller [MVP]" <rlmueller-nos...@ameritech.nospam.net> skrev i
meddelelsen news:erEXAHiYKHA.4148@TK2MSFTNGP04.phx.gbl...

Hi Richard

Ok, I will give it a try.
I found the link below which is the .NET way to do it.
http://www.codeproject.com/KB/security/LastLogonAcrossAllWindows.aspx

There is also a reference to your script. Thanks again.

/Jesper


    Forward  
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.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google