Jump to content

Checking user location


Recommended Posts

Guest yaro137@googlemail.com
Posted

Having the username is there a way to check on which workstation is he

loged in?

Thanks

yAro

  • Replies 4
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

Re: Checking user location

 

 

<yaro137@googlemail.com> wrote in message

news:7f261029-5c0b-4989-aabd-99119c91e450@41g2000hsy.googlegroups.com...

> Having the username is there a way to check on which workstation is he

> loged in?

> Thanks

> yAro

 

The easiest way is to insert this line into your logon script:

 

echo %date% %time:~0,5% %Username% %ComputerName% >>

\\YourServer\SomeShare\logon.log

Guest yaro137@googlemail.com
Posted

Re: Checking user location

 

>

> The easiest way is to insert this line into your logon script:

>

> echo %date% %time:~0,5% %Username% %ComputerName% >>

> \\YourServer\SomeShare\logon.log

 

What if the user is already logged in and I would like to check which

of the PCs he's using?

Thanks

yaro

Guest Pegasus \(MVP\)
Posted

Re: Checking user location

 

 

<yaro137@googlemail.com> wrote in message

news:0c8f7121-7432-4e30-9695-b610fb063ead@u10g2000prn.googlegroups.com...

>

>>

>> The easiest way is to insert this line into your logon script:

>>

>> echo %date% %time:~0,5% %Username% %ComputerName% >>

>> \\YourServer\SomeShare\logon.log

>

> What if the user is already logged in and I would like to check which

> of the PCs he's using?

> Thanks

> yaro

 

I'm not aware of a suitable method (which does not mean

that it does not exist!) but if you have an idea of the machine's

name or IP address then you can check it with psloggedon.exe

(http://www.sysinternals.com).

Guest Richard Mueller [MVP]
Posted

Re: Checking user location

 

 

<yaro137@googlemail.com> wrote in message

news:0c8f7121-7432-4e30-9695-b610fb063ead@u10g2000prn.googlegroups.com...

>

>>

>> The easiest way is to insert this line into your logon script:

>>

>> echo %date% %time:~0,5% %Username% %ComputerName% >>

>> \\YourServer\SomeShare\logon.log

>

> What if the user is already logged in and I would like to check which

> of the PCs he's using?

> Thanks

> yaro

 

Nothing keeps track of which use is logged into which PC. Some third party

tools may do this. I've used logon scripts, as suggested above, to keep log

files. Sometimes you can tell who is logged into which PC by enumerating the

sessions on a server, but this is very unreliable. The sessions come and go.

A VBScript example:

==========

Set objDC = GetObject("WinNT://MyServer/LanmanServer")

 

For Each objSession In objDC.Sessions

Wscript.Echo "Session: " & objSession.Name _

vbCrLf & "User: " & objSession.User _

vbCrLf & "Computer: " & objSession.Computer _

vbCrLf & "Connect Time: " & objSession.ConnectTime _

vbCrLf & "Idle Time: " & objSession.IdleTime

 

--

Richard Mueller

Microsoft MVP Scripting and ADSI

Hilltop Lab - http://www.rlmueller.net

--


×
×
  • Create New...