RE: find on which computer is connected a user
- From: nicolas29 <nt29@xxxxxxxxxxxxxxxx>
- Date: Tue, 8 Apr 2008 02:45:00 -0700
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
- References:
- Prev by Date: RE: find on which computer is connected a user
- Next by Date: Re: Read Only access user account to Main Domain Controller
- Previous by thread: RE: find on which computer is connected a user
- Next by thread: RE: find on which computer is connected a user
- Index(es):
Relevant Pages
|
Loading