RE: find on which computer is connected a user



thanks kev for your script but i think he doesn't work if the user is yet not
connected, who is my more regular case

have you a other for that?

--
nt


"Kev" wrote:

Copy this script into notepad. Save as a "filename.vbs". This will give you
the computer name of the user logged in.

strComputer = "ComputerName"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colComputer = objWMIService.ExecQuery _
("Select * from Win32_ComputerSystem")
For Each objComputer in colComputer
Wscript.Echo objComputer.UserName
Next

"NT" wrote:

hello

if i only have the login_name, which tools or request (included in windows
server 2003 or 2000) can give me on which computer my user is logon and the
reverse question, same if he is not yet connected



thanks


.



Relevant Pages

  • Re: Javascript on user controls
    ... Kev ... > "By identifying the script with a key, multiple server control instances ... > can request the script block without it being emitted to the output stream ... >> javascript functions are all being generated 3 times with obviously ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Web site auto updating!!! is this possible?
    ... > Do i just cut and paste those script lines or do i need to put something ... >>> individual Explorer settings or pressing Ctrl F5 each visit etc. ... >>> Best Rgds ... >>> Kev ...
    (microsoft.public.frontpage.programming)
  • Re: C Shell script question
    ... Kev G wrote: ... > I am trying to make a script to run nmap with various options. ... The parameters to a script are numbered, ... -- Linus Torvalds ...
    (comp.os.linux.security)
  • Re: Most visited website.
    ... > Apart from UKRM and the BBC what sites do you visit on a regular ... Kev ... Prev by Date: ...
    (uk.rec.motorcycles)
  • Re: Javascript on user controls
    ... > thx to this you won't get 3 JS scripts out on the page, ... Kev ... >>> can request the script block without it being emitted to the output ...
    (microsoft.public.dotnet.framework.aspnet)

Loading