Find last logon by IP 
Author Message
 Find last logon by IP

Hello,

I have a table with IP-adresses.
How to find out the last user who was logged on these
workstations.
ps : I have administrator rights.

OS : NT4 sp6a
VFP8

Regards,

Jan



Sat, 03 Sep 2005 21:31:36 GMT  
 Find last logon by IP
Hello, Jan!
You wrote  on Tue, 18 Mar 2003 05:31:36 -0800:

 J> I have a table with IP-adresses.
 J> How to find out the last user who was logged on these
 J> workstations.
 J> ps : I have administrator rights.

 J> OS : NT4 sp6a
 J> VFP8

I think the only place you can find this info is the NT Event Viewer. Maybe
there is an API that you can use to access the Event database.
---
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Sat, 03 Sep 2005 22:06:43 GMT  
 Find last logon by IP
Hi,

Quote:
> I have a table with IP-adresses.
> How to find out the last user who was logged on these
> workstations.
> ps : I have administrator rights.

> OS : NT4 sp6a
> VFP8

With thanks to posters from an earlier thread, this works with VFP8 on WinXP
(don't know about NT4). You could try logging this information to a table
from a logon script.

lo = createobject("MSWinsock.Winsock.1")
? lo.LocalIP && IP
? lo.LocalHostName && machine name
? substr(sys(0), at('#', sys(0)) + 2) && username
? datetime()



Sun, 04 Sep 2005 04:45:13 GMT  
 Find last logon by IP


Quote:
> Hi,

> > I have a table with IP-adresses.
> > How to find out the last user who was logged on these
> > workstations.
> > ps : I have administrator rights.

> > OS : NT4 sp6a
> > VFP8

> With thanks to posters from an earlier thread, this works with VFP8 on
WinXP
> (don't know about NT4). You could try logging this information to a table
> from a logon script.

> lo = createobject("MSWinsock.Winsock.1")
> ? lo.LocalIP && IP
> ? lo.LocalHostName && machine name
> ? substr(sys(0), at('#', sys(0)) + 2) && username
> ? datetime()

Word of warning...

You may find that this does not work upon installation.

The Winsock license requires it to be used on a form (when running on a PC
that does not have VFP fully installed).

Andrew R.



Sun, 04 Sep 2005 16:14:48 GMT  
 Find last logon by IP
You can try this

oNetwork = CREATEOBJECT("WSCRIPT.NETWORK")
lcComputerName = oNetwork.ComputerName
lcLogonName = oNetwork.UserName
lcDomainName = oNetwork.UserDomain


Quote:
> Hi,

> > I have a table with IP-adresses.
> > How to find out the last user who was logged on these
> > workstations.
> > ps : I have administrator rights.

> > OS : NT4 sp6a
> > VFP8

> With thanks to posters from an earlier thread, this works with VFP8 on
WinXP
> (don't know about NT4). You could try logging this information to a table
> from a logon script.

> lo = createobject("MSWinsock.Winsock.1")
> ? lo.LocalIP && IP
> ? lo.LocalHostName && machine name
> ? substr(sys(0), at('#', sys(0)) + 2) && username
> ? datetime()



Sun, 04 Sep 2005 17:09:57 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Finding Last Record Entered Q.

2. Finding the last day of the month?

3. how to find the last index key ?

4. query only finds last characters in field?!

5. Logon Routine

6. NT 4.0 Logon Variable

7. Logon to Oracle

8. Logon Screen

9. Logon form does not have focus at startup

10. Adding splash/logon forms after main form ShowWindow prop = 2

11. How to check current logon user name in Network

12. Logon to Oracle

 

 
Powered by phpBB® Forum Software