Re: Obtaining the logged in user from a remote machine

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Dale Preston (dalepres_at_nospam.nospam)
Date: 03/18/05


Date: Thu, 17 Mar 2005 18:57:30 -0600

How to get the logged in user on a remote machine using WMI:

http://www.microsoft.com/technet/scriptcenter/scripts/desktop/logon/dmlgvb02.mspx

How to use WMI in C#:

http://www.csharphelp.com/archives2/archive334.html

HTH

DalePres
MCAD, MCDBA, MCSE

"Sam Evans" <wintrmte@gmail.com> wrote in message
news:a62dnXfh74wsJ6TfRVn-2w@giganews.com...
> All,
>
> I am trying to figure out how I can obtain the userid of an individual
> who's logged into a PC by using a remote call. What I'm ultimately
> attempting to do is something along the lines of 'nbtstat' where it
> shows the domain and the userid who is logged in.
>
> Does anyone have any C# code they can point me to, or perhaps some MSDN
> information?
>
> Thank you,
> Sam



Relevant Pages

  • Re: Obtaining the logged in user from a remote machine
    ... I have finally got around to implementing the WMI example you posted, however, my understanding is that WMI only works if the user account you are using to enumerate has appropriate access on the remote machine. ... Nbtstat is independant of any user privileges but can pull out the logged in user. ... I am trying to figure out how I can obtain the userid of an individual ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: LSA vs LSP GUI on Vista/2008?
    ... I mentioned WMI because Joe had suggested it in this thread, I will instead post to WMI group about it. ... I was assuming you could remote a call to any class that's part of the base .NET Framework on the remote machine. ... the app that uses the COM object does not need the Admin privileges. ... you need the admin privileges only during the installation. ...
    (microsoft.public.platformsdk.security)
  • Re: WMI Access Denied WIN32_UserAccount Class
    ... I added in the additional ConnectionOptions, ... but rather the WMI security setup on the other machine - I ... >for ConnectionOptions object to remote machine, ... >> domain, String machine, String username, String ...
    (microsoft.public.win32.programmer.wmi)
  • Re: change local admin password on remote computers
    ... Start tthe script remotely on the server, let it eg. mail the results. ... Or place the script on the remote machine, start it over WMI and let the ...
    (microsoft.public.scripting.vbscript)
  • Re: WMI in ASP fails on 2003 (err 80041003); works fine on 2000
    ... Second - I have two production 2000 servers here that process the WMI in ASP ... > Hi Jeff, ... >> the WMI script uses delegation to reach the remote machine. ...
    (microsoft.public.win32.programmer.wmi)