Fixed font Subject: Re: Can be re-written relatively simply.
Author: Matt Moore Date: 09 Feb 2011
References:
Howso Paul?

LastTime just iterates through each DC until the most recent LastLogon is found for the given user. The machine name/last IP for the user's LastLogon isn't stored in AD, so how would you relatively simply re-write it?

Matt

> On Monday, September 07, 2009 6:06 AM Vilius Mock?nas wrote:

> Hi,
>
> I have domain user name and want to find domain computer name user logged on
> last time.
> Possible to do that ?
> Not necessary adsi - other ways are also ok.
>
> thanks
> Vilius


>> On Monday, September 07, 2009 6:56 AM Florian Frommherz [MVP] wrote:

>> Howdie!
>>
>> Vilius Mock?nas wrote:
>>
>> That info is not stored in AD. You have two ways to get the info you want:
>> (1) Enable/modify auditing and comb through the security event logs to
>> get to know where/when a user logged on
>> (2) create a user logon script that does some magic on user logon.
>>
>> Cheers,
>> Florian


>>> On Tuesday, September 08, 2009 1:09 AM Meinolf Weber [MVP-DS] wrote:

>>> Hello Vilius,
>>>
>>> Check out this script from Richard Mueller:
>>> http://www.rlmueller.net/Logon5.htm
>>>
>>> Best regards
>>>
>>> Meinolf Weber
>>> Disclaimer: This posting is provided "AS IS" with no warranties, and confers
>>> no rights.
>>> ** Please do NOT email, only reply to Newsgroups
>>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm


>>>> On Tuesday, September 08, 2009 8:22 AM Paul Bergson [MVP-DS] wrote:

>>>> Check out a script I have on last logon (User Account Attributes) at:
>>>> http://www.pbbergs.com/windows/downloads.htm
>>>>
>>>> --
>>>> Paul Bergson
>>>> MVP - Directory Services
>>>> MCTS, MCT, MCSE, MCSA, Security+, BS CSci
>>>> 2008, 2003, 2000 (Early Achiever), NT4
>>>> Microsoft's Thrive IT Pro of the Month - June 2009
>>>>
>>>> http://www.pbbergs.com
>>>>
>>>> Please no e-mails, any questions should be posted in the NewsGroup This
>>>> posting is provided "AS IS" with no warranties, and confers no rights.


>>>>> On Monday, September 14, 2009 10:39 AM Dorian Barnett wrote:

>>>>> Thank you very much!


>>>>>> On Tuesday, September 15, 2009 5:01 PM R Shah wrote:

>>>>>> You can create logon script and send the logon information to a log file on
>>>>>> your network.


>>>>>>> On Wednesday, September 23, 2009 3:56 PM Gerry Hickman wrote:

>>>>>>> Paul Bergson [MVP-DS] wrote:
>>>>>>>
>>>>>>> But I do not see how this is related to the question in the subject line;
>>>>>>> he is asking for the "Computer Name"?
>>>>>>>
>>>>>>> --
>>>>>>> Gerry Hickman (London UK)


>>>>>>>> On Wednesday, September 23, 2009 4:04 PM Gerry Hickman wrote:

>>>>>>>> Florian Frommherz [MVP] wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>> I wonder what audit settings would be used and how practical this would
>>>>>>>> be on a big network? Out security logs only manage to store about one
>>>>>>>> day's worth of logs, and the Event log APIs seem very slow (compared
>>>>>>>> with UNIX).
>>>>>>>>
>>>>>>>>
>>>>>>>> I have done this in the past with logon/logoff with centralized logging
>>>>>>>> and it worked well. However, it is not much use once you get into Mac
>>>>>>>> clients, multi-organization federated authentication and single sign on.
>>>>>>>> It only works when they physically log into a Windows machine. Same
>>>>>>>> problem with lastLogonTimeStamp.
>>>>>>>>
>>>>>>>> --
>>>>>>>> Gerry Hickman (London UK)


>>>>>>>>> On Friday, September 25, 2009 9:51 AM Paul Bergson [MVP-DS] wrote:

>>>>>>>>> Can be re-written relatively simply.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Paul Bergson
>>>>>>>>> MVP - Directory Services
>>>>>>>>> MCTS, MCT, MCSE, MCSA, Security+, BS CSci
>>>>>>>>> 2008, 2003, 2000 (Early Achiever), NT4
>>>>>>>>> Microsoft's Thrive IT Pro of the Month - June 2009
>>>>>>>>>
>>>>>>>>> http://www.pbbergs.com
>>>>>>>>>
>>>>>>>>> Please no e-mails, any questions should be posted in the NewsGroup This
>>>>>>>>> posting is provided "AS IS" with no warranties, and confers no rights.


>>>>>>>>> Submitted via EggHeadCafe
>>>>>>>>> ASP.NET In-Memory Image Control with Built-In Resizing of Posted File
>>>>>>>>> http://www.eggheadcafe.com/tutorials/aspnet/e1a14e2c-e746-4bed-a552-24c632bd2709/aspnet-inmemory-image-control-with-builtin-resizing-of-posted-file.aspx