Re: Request wich user has been connected on a workstation

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello Richard !

Thanks for the answer and the tip !

Bye
Sam

"Richard Mueller" <rlmueller-NOSPAM@xxxxxxxxxxxxxxxxxxxx> a écrit dans le
message de news:%23JX2ZUx4GHA.4616@xxxxxxxxxxxxxxxxxxxxxxx
Samuel LEFEBVRE wrote:

I'd like to make a script, on active directory.
Is there a way to find what is the last user which has been connected to
a
workstation ?
I'd like to know if we can know on which workstation is connected a
user.

Hi,

Active Directory does not keep track of which computers users log into.
Even
if the user is currently logged on, AD only knows the date/time they last
logged on. AD does not even know if the user is still logged on, much less
on which workstation.

You can look at sessions on servers to get some information about users
currently logged on, but this is nor reliable.

One solution would be logon/logoff scripts in Group Policy that log
information, perhaps to a text file. I've done this in small networks. The
scripts append a line to a log file with the user name, the workstation,
and
date/time to a text file. From this I could tell when users logged on and
off, and on which computers.

--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net




.



Relevant Pages

  • Re: How to see the amount of time usage per workstation
    ... connected to server from login to logout. ... The only way I know to do this is have startup and shutdown scripts that log ... shared location with date/time, startup or shutdown, and workstation name. ... The computer object in AD has a lastLogon attribute, ...
    (microsoft.public.windows.server.active_directory)
  • Re: Lab Domain Layout - SOS
    ... So the Servers and Workstation GPOs DO have logon scripts assigned at ... But because the labadmin user is assigned ... >>Seperate logon scripts are defined for both the Server OU, and Workstation ...
    (microsoft.public.windows.server.active_directory)
  • Re: Lab Domain Layout - SOS
    ... So the Servers and Workstation GPOs DO have logon scripts assigned at ... But because the labadmin user is assigned ... >>Seperate logon scripts are defined for both the Server OU, and Workstation ...
    (microsoft.public.win2000.group_policy)
  • Re: GetReportsForAllGPOs.wsf for 64bit edition
    ... As GPMC cannot be used with 64bit OS version you have to use a 32bit workstation to run the scripts. ... Is that possible to get work GetReportsForAllGPOs.wsf in 64bit server. ... Copyright Microsoft Corporation 1996-2001. ...
    (microsoft.public.windows.group_policy)
  • Re: How can I find out who is logged on a specific workstation
    ... scripts), I don't think this can be done reliably. ... Microsoft MVP Scripting and ADSI ... "Who is currently logged on a workstation" <Who is currently logged on a ... We have a Windows Server 2003 domain with all additional Microsoft ...
    (microsoft.public.windows.server.active_directory)