Forum Search:
Forum.Brain-Cluster.com: Brain Cluster Technical Forum
Ultimate forum for Technical Discussions

Home » Microsoft » Windows Server » Active Directory » Find computer name from which user logged on last time ?
Find computer name from which user logged on last time ? [message #160733] Mon, 07 September 2009 04:06 Go to next message
v_mockunas  is currently offline v_mockunas  Lithuania
Messages: 42
Registered: July 2009
Member
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
Re: Find computer name from which user logged on last time ? [message #160736 is a reply to message #160733] Mon, 07 September 2009 04:56 Go to previous messageGo to next message
florian  is currently offline florian  Switzerland
Messages: 484
Registered: July 2009
Senior Member
Howdie!

Vilius Mock√Ľnas wrote:
> 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.

That info isn't 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
Re: Find computer name from which user logged on last time ? [message #160737 is a reply to message #160733] Mon, 07 September 2009 05:21 Go to previous messageGo to next message
meiweb  is currently offline meiweb  Germany
Messages: 2225
Registered: September 2009
Senior Member
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


> 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
Re: Find computer name from which user logged on last time ? [message #160779 is a reply to message #160733] Tue, 08 September 2009 06:22 Go to previous messageGo to next message
pbbergs  is currently offline pbbergs  United States
Messages: 1024
Registered: July 2009
Senior Member
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.

"Vilius MockŻnas" <v_mockunas@yahoo.com> wrote in message
news:emjnCL6LKHA.5192@TK2MSFTNGP02.phx.gbl...
> 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
>
Re: Find computer name from which user logged on last time ? [message #161055 is a reply to message #160736] Mon, 14 September 2009 08:39 Go to previous messageGo to next message
Dorian Barnett  is currently offline Dorian Barnett  China
Messages: 1
Registered: September 2009
Junior Member
Thank you very much!
"Florian Frommherz [MVP]" <florian@frickelsoft.net> wrote in message
news:OmFyRn6LKHA.3948@TK2MSFTNGP04.phx.gbl...
> Howdie!
>
> Vilius Mock√Ľnas wrote:
>> 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.
>
> That info isn't 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
Re: Find computer name from which user logged on last time ? [message #161096 is a reply to message #161055] Tue, 15 September 2009 15:01 Go to previous messageGo to next message
R Shah  is currently offline R Shah
Messages: 8
Registered: September 2009
Junior Member
You can create logon script and send the logon information to a log file on
your network.




"Dorian Barnett" <ddbarnett@live.com> wrote in message
news:OqTcGjUNKHA.4964@TK2MSFTNGP06.phx.gbl...
> Thank you very much!
> "Florian Frommherz [MVP]" <florian@frickelsoft.net> wrote in message
> news:OmFyRn6LKHA.3948@TK2MSFTNGP04.phx.gbl...
>> Howdie!
>>
>> Vilius Mock√Ľnas wrote:
>>> 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.
>>
>> That info isn't 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
>
Re: Find computer name from which user logged on last time ? [message #161348 is a reply to message #160779] Wed, 23 September 2009 13:56 Go to previous messageGo to next message
Gerry Hickman  is currently offline Gerry Hickman  United States
Messages: 23
Registered: September 2009
Junior Member
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

But I don't see how this is related to the question in the subject line;
he's asking for the "Computer Name"?

--
Gerry Hickman (London UK)
Re: Find computer name from which user logged on last time ? [message #161350 is a reply to message #160736] Wed, 23 September 2009 14:04 Go to previous messageGo to next message
Gerry Hickman  is currently offline Gerry Hickman  United States
Messages: 23
Registered: September 2009
Junior Member
Florian Frommherz [MVP] wrote:

> That info isn't 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

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).

> (2) create a user logon script that does some magic on user logon.

I've done this in the past with logon/logoff with centralized logging
and it worked well. However, it's 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)
Re: Find computer name from which user logged on last time ? [message #161415 is a reply to message #161348] Fri, 25 September 2009 07:51 Go to previous message
pbbergs  is currently offline pbbergs  United States
Messages: 1024
Registered: July 2009
Senior Member
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.

"Gerry Hickman" <gerry666uk2@newsgroup.nospam> wrote in message
news:usWr$fIPKHA.1236@TK2MSFTNGP05.phx.gbl...
> 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
>
> But I don't see how this is related to the question in the subject line;
> he's asking for the "Computer Name"?
>
> --
> Gerry Hickman (London UK)
Previous Topic:Changing AD Sites
Next Topic:[Active Directory + .NET] Enable / Disable GPOs linked to an Organizational Unit in .NET Code
Goto Forum:
  


Current Time: Tue Jan 16 04:11:50 MST 2018

Total time taken to generate the page: 0.07169 seconds
.:: Contact :: Home ::Sitemap::.

Powered by: FUDforum 3.0.0RC2.
Copyright ©2001-2009 FUDforum Bulletin Board Software