Re: Discover user name given IP address or NetBIOS name
From: DalePres (don-t-spa-m-me_at_lea-ve-me-a-lone--.com)
Date: 02/04/05
- Next message: JM: "Cost of Visual C# 2005"
- Previous message: Dave: "illegal characters"
- In reply to: rdonnici_at_gmail.com: "Discover user name given IP address or NetBIOS name"
- Next in thread: DalePres: "Re: Discover user name given IP address or NetBIOS name"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 4 Feb 2005 14:04:59 -0600
To do it in VBScript with WMI, use
http://www.microsoft.com/technet/scriptcenter/scripts/desktop/logon/dmlgvb02.mspx
After looking at that, look at the WMI and System.Management classes in the
.Net framework.
To get the user, make sure you set a reference to System.Management.dll
There's a pretty good article at
http://www.csharphelp.com/archives3/archive584.html. Be sure to look for
part II of the article at
http://www.csharphelp.com/archives3/archive585.html for more specific
details.
Hope this helps,
DalePres
MCAD, MCDBA, MCSE
<rdonnici@gmail.com> wrote in message
news:1107539997.623486.289980@z14g2000cwz.googlegroups.com...
> Hi all,
>
> Is there any way to, given an IP address(or NETBIOS machinename - I can
> convert from one to other) from my network, and assuming that everyone
> needs to log on a NT/2K/Windows Server 2003 Server, to discover the
> user name for the user logged on that machine? The final result
> desired is something like a table, with pairs [IP(or NB machnename),
> username] at the moment the program is run.
>
> Any ideas? I have hunted high and low on the newsgroups and have not
> found any kind of solution.
>
> Thanks in advance,
>
> Rafael
>
- Next message: JM: "Cost of Visual C# 2005"
- Previous message: Dave: "illegal characters"
- In reply to: rdonnici_at_gmail.com: "Discover user name given IP address or NetBIOS name"
- Next in thread: DalePres: "Re: Discover user name given IP address or NetBIOS name"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|