List Info

Thread: RE: Get User Login Name from another computer




RE: Get User Login Name from another computer
country flaguser name
United States
2007-06-04 10:15:52

WMI is short for Windows Management Instrumentation, you should be able to
find lots of info on it on MSDN, particularly under the TechNet Scripting
section since it's used a lot with VBScript. WMI can also be used directly
with Delphi since it's an ActiveX technology.
www.microsoft.com/technet/scriptcenter

Also, take a look at the SysInternals tools, now also part of Microsoft.
They have a series of command line programs called PsTools that includes
lots of management of servers on a network. www.sysinternals.com

Todd

Steve Riley < stevenriley%40btopenworld.com">stevenrileybtopenworld.com>; wrote on Sat, 2 Jun 2007 06:57:05 +0100:

> Thanks, I have searched google but can't find anything, I will look for WMI

&gt; Steve

>

> _____

> From: delphi-en%40yahoogroups.com">delphi-enyahoogroups.com [mailto: delphi-en%40yahoogroups.com">delphi-enyahoogroups.com] On Behalf
> Of Marselle Caston
> Sent: 01 June 2007 18:27
> To: delphi-en%40yahoogroups.com">delphi-enyahoogroups.com
> Subject: Re: [delphi-en] Get User Login Name from another computer

>

> I think if I am not mistaken that you can get this
> information as well using the System.Management class
> I have done this in C# .net and I am sure that there
> is an easier way to use the same methodology in Delphi
> I would look at Delphi examples using "WMI&quot;

> --- Thomas Hruska <thruskacubiclesoft <mailto:thruska%40cubiclesoft.com>
> .com> wrote:

> > Steve Riley wrote:
> > > Hi All
> > >
> > > I need to find out who is logged onto another
> > machine on my network
> > >
> > > i know that GetUserName collects the information
> > about the current user on
> > > my machine
> > > but how can i find out about a different machine
> > from my own machine,
> > >
> > > any code would be great
> > > Thanks in advance
> > >
> > > Steve
> >
> > Steve,
> >
> > GetUserName() is really only useful for the
> > currently logged in user.
> > At any given time in Windows NT, multiple users are
> > logged in: NETWORK,
> > SYSTEM, and maybe a few actual people. The only way
> > I see an
> > application working as expected would be to write a
> > program that uses
> > sockets to send the value of GetUserName() to a
> > specific machine on the
> > network from logged in user accounts.
> >
> > --
> > Thomas Hruska
> > CubicleSoft President
> > Ph: 517-803-4197
> >
> > *NEW* VerifyMyPC 2.5
> > Change tracking and management tool.
> > Reduce tech. support times from 2 hours to 5
> > minutes.
> >
> > http://www.CubicleS <http://www.CubicleSoft.com/VerifyMyPC/&gt;
> oft.com/VerifyMyPC/
> >
> >

> __________________________________________________________
> Shape Yahoo! in your own image. Join our Network Research Panel today!
> http://surveylink.
> <http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7&gt;
> yahoo.com/gmrs/yahoo_panel_invite.asp?a=7

>

> [Non-text portions of this message have been removed]

> -----------------------------------------------------
> Home page: http://groups.yahoo.com/group/delphi-en/
> To unsubscribe: delphi-en-unsubscribe%40yahoogroups.com">delphi-en-unsubscribeyahoogroups.com
> Yahoo! Groups Links

__._,_.___
.

__,_._,___
RE: Get User Login Name from another computer
country flaguser name
United Kingdom
2007-06-06 22:01:09

Thanks Todd

_____

From: delphi-en%40yahoogroups.com">delphi-enyahoogroups.com [mailto: delphi-en%40yahoogroups.com">delphi-enyahoogroups.com] On Behalf
Of Todd Fiske
Sent: 04 June 2007 16:16
To: delphi-en%40yahoogroups.com">delphi-enyahoogroups.com
Subject: RE: [delphi-en] Get User Login Name from another computer

WMI is short for Windows Management Instrumentation, you should be able to
find lots of info on it on MSDN, particularly under the TechNet Scripting
section since it's used a lot with VBScript. WMI can also be used directly
with Delphi since it's an ActiveX technology.
www.microsoft.com/technet/scriptcenter

Also, take a look at the SysInternals tools, now also part of Microsoft.
They have a series of command line programs called PsTools that includes
lots of management of servers on a network. www.sysinternals.com

Todd

Steve Riley <stevenriley <mailto:stevenriley%40btopenworld.com&gt;
btopenworld.com> wrote on Sat, 2 Jun 2007 06:57:05 +0100:

> Thanks, I have searched google but can't find anything, I will look for
WMI

> Steve

>

> _____

> From: delphi-enyahoogrou <mailto:delphi-en%40yahoogroups.com>; ps.com
[mailto:delphi-enyahoogrou <mailto:delphi-en%40yahoogroups.com>; ps.com] On
Behalf
> Of Marselle Caston
&gt; Sent: 01 June 2007 18:27
&gt; To: delphi-enyahoogrou <mailto:delphi-en%40yahoogroups.com>; ps.com
&gt; Subject: Re: [delphi-en] Get User Login Name from another computer

>

> I think if I am not mistaken that you can get this
>; information as well using the System.Management class
&gt; I have done this in C# .net and I am sure that there
&gt; is an easier way to use the same methodology in Delphi
&gt; I would look at Delphi examples using "WMI&quot;

> --- Thomas Hruska <thruskacubiclesoft <mailto:thruska%40cubiclesoft.com>
> .com> wrote:

> > Steve Riley wrote:
&gt; > > Hi All
> > >
> > > I need to find out who is logged onto another
> > machine on my network
> > >
> > > i know that GetUserName collects the information
> > about the current user on
> > > my machine
> > > but how can i find out about a different machine
> > from my own machine,
> > >
> > > any code would be great
&gt; > > Thanks in advance
> > >
> > > Steve
> >
> > Steve,
&gt; >
> > GetUserName() is really only useful for the
> > currently logged in user.
> > At any given time in Windows NT, multiple users are
> > logged in: NETWORK,
> > SYSTEM, and maybe a few actual people. The only way
> > I see an
> > application working as expected would be to write a
> > program that uses
> > sockets to send the value of GetUserName() to a
> > specific machine on the
> > network from logged in user accounts.
> >
> > --
> > Thomas Hruska
&gt; > CubicleSoft President
> > Ph: 517-803-4197
> >
> > *NEW* VerifyMyPC 2.5
> > Change tracking and management tool.
&gt; > Reduce tech. support times from 2 hours to 5
> > minutes.
> >
> > http://www.CubicleS <http://www.CubicleS
<http://www.CubicleSoft.com/VerifyMyPC/&gt; oft.com/VerifyMyPC/&gt;
> oft.com/VerifyMyPC/
> >
> >

> __________________________________________________________
> Shape Yahoo! in your own image. Join our Network Research Panel today!
&gt; http://surveylink.
> <http://surveylink.
<http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7&gt;
yahoo.com/gmrs/yahoo_panel_invite.asp?a=7>
> yahoo.com/gmrs/yahoo_panel_invite.asp?a=7

>

> [Non-text portions of this message have been removed]

> -----------------------------------------------------
> Home page: http://groups. <http://groups.yahoo.com/group/delphi-en/>
yahoo.com/group/delphi-en/
> To unsubscribe: delphi-en-unsubscri
<mailto:delphi-en-unsubscribe%40yahoogroups.com&gt; be%40yahoogroups.com">beyahoogroups.com
> Yahoo! Groups Links

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
RE: Get User Login Name from another computer
country flaguser name
United Kingdom
2007-06-08 19:26:20

Hi All again

I have been looking at WMI but can not find any code for Delphi 5, its all
VBScript or C++ and I don't know either,

I just need some code to see if a certain user is still connected to a
machine on the network that they were on before

Sort of code I am looking for is

If ISUserStillOn('DomainName',MachineName','UserName') then

Showmessage('yes there are')

Else

Showmessage('no there are not');

Can anyone help me with some code please

Thanks in advance

Steve

_____

From: delphi-en%40yahoogroups.com">delphi-enyahoogroups.com [mailto: delphi-en%40yahoogroups.com">delphi-enyahoogroups.com] On Behalf
Of Steve Riley
Sent: 07 June 2007 04:01
To: delphi-en%40yahoogroups.com">delphi-enyahoogroups.com
Subject: RE: [delphi-en] Get User Login Name from another computer

Thanks Todd

_____

From: delphi-enyahoogrou <mailto:delphi-en%40yahoogroups.com>; ps.com
[mailto:delphi-enyahoogrou <mailto:delphi-en%40yahoogroups.com>; ps.com] On
Behalf
Of Todd Fiske
Sent: 04 June 2007 16:16
To: delphi-enyahoogrou <mailto:delphi-en%40yahoogroups.com>; ps.com
Subject: RE: [delphi-en] Get User Login Name from another computer

WMI is short for Windows Management Instrumentation, you should be able to
find lots of info on it on MSDN, particularly under the TechNet Scripting
section since it's used a lot with VBScript. WMI can also be used directly
with Delphi since it's an ActiveX technology.
www.microsoft.com/technet/scriptcenter

Also, take a look at the SysInternals tools, now also part of Microsoft.
They have a series of command line programs called PsTools that includes
lots of management of servers on a network. www.sysinternals.com

Todd

Steve Riley <stevenriley <mailto:stevenriley%40btopenworld.com&gt;
btopenworld.com> wrote on Sat, 2 Jun 2007 06:57:05 +0100:

> Thanks, I have searched google but can't find anything, I will look for
WMI

> Steve

>

> _____

> From: delphi-enyahoogrou <mailto:delphi-en%40yahoogroups.com>; ps.com
[mailto:delphi-enyahoogrou <mailto:delphi-en%40yahoogroups.com>; ps.com] On
Behalf
> Of Marselle Caston
&gt; Sent: 01 June 2007 18:27
&gt; To: delphi-enyahoogrou <mailto:delphi-en%40yahoogroups.com>; ps.com
&gt; Subject: Re: [delphi-en] Get User Login Name from another computer

>

> I think if I am not mistaken that you can get this
>; information as well using the System.Management class
&gt; I have done this in C# .net and I am sure that there
&gt; is an easier way to use the same methodology in Delphi
&gt; I would look at Delphi examples using "WMI&quot;

> --- Thomas Hruska <thruskacubiclesoft <mailto:thruska%40cubiclesoft.com>
> .com> wrote:

> > Steve Riley wrote:
&gt; > > Hi All
> > >
> > > I need to find out who is logged onto another
> > machine on my network
> > >
> > > i know that GetUserName collects the information
> > about the current user on
> > > my machine
> > > but how can i find out about a different machine
> > from my own machine,
> > >
> > > any code would be great
&gt; > > Thanks in advance
> > >
> > > Steve
> >
> > Steve,
&gt; >
> > GetUserName() is really only useful for the
> > currently logged in user.
> > At any given time in Windows NT, multiple users are
> > logged in: NETWORK,
> > SYSTEM, and maybe a few actual people. The only way
> > I see an
> > application working as expected would be to write a
> > program that uses
> > sockets to send the value of GetUserName() to a
> > specific machine on the
> > network from logged in user accounts.
> >
> > --
> > Thomas Hruska
&gt; > CubicleSoft President
> > Ph: 517-803-4197
> >
> > *NEW* VerifyMyPC 2.5
> > Change tracking and management tool.
&gt; > Reduce tech. support times from 2 hours to 5
> > minutes.
> >
> > http://www.CubicleS <http://www.CubicleS
<http://www.CubicleS <http://www.CubicleSoft.com/VerifyMyPC/&gt;
oft.com/VerifyMyPC/> oft.com/VerifyMyPC/&gt;
> oft.com/VerifyMyPC/
> >
> >

> __________________________________________________________
> Shape Yahoo! in your own image. Join our Network Research Panel today!
&gt; http://surveylink.
> <http://surveylink.
<http://surveylink.
<http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7&gt;
yahoo.com/gmrs/yahoo_panel_invite.asp?a=7>
yahoo.com/gmrs/yahoo_panel_invite.asp?a=7>
&gt; yahoo.com/gmrs/yahoo_panel_invite.asp?a=7

>

> [Non-text portions of this message have been removed]

> -----------------------------------------------------
> Home page: http://groups. <http://groups.
<;http://groups.yahoo.com/group/delphi-en/> yahoo.com/group/delphi-en/>
yahoo.com/group/delphi-en/
> To unsubscribe: delphi-en-unsubscri
<mailto:delphi-en-unsubscribe%40yahoogroups.com&gt; beyahoogroups.
<mailto:be%40yahoogroups.com> com
> Yahoo! Groups Links

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )