PC Review


Reply
Thread Tools Rate Thread

Re: Getting a username from their workstation name

 
 
Allen Browne
Guest
Posts: n/a
 
      4th Aug 2003
Here are the API calls for the computer name:
http://www.mvps.org/access/api/api0009.htm
and network user name:
http://www.mvps.org/access/api/api0008.htm

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to the newsgroup. (Email address has spurious "_SpamTrap")

"William Lugg" <(E-Mail Removed)> wrote in message
news:079701c35a8b$8230dc20$(E-Mail Removed)...
> I'm attempting to build a tool to show a requesting user a
> list of all users that are connected to the data file in a
> split database. I'm using the MS KB article 198755 sample
> code to generate the list. The problem is that it shows
> the workstation name and "ADMIN" as the user account.
>
> Is there a way through the Windows API to pass in a
> workstation name and get back the username of the user
> logged on to that workstation?
>
> Thanks.
> Bill Lugg
> (E-Mail Removed)



 
Reply With Quote
 
 
 
 
Cheryl Fischer
Guest
Posts: n/a
 
      4th Aug 2003
You might want to take a look at the code at this link:

http://www.mvps.org/vbnet/index.html...tauserenum.htm

--
Cheryl Fischer
Law/Sys Associates
Houston, TX

"William Lugg" <(E-Mail Removed)> wrote in message
news:070f01c35a92$b6a900c0$(E-Mail Removed)...
> Thanks, but that only works on the local machine, right?
>
> I need something that goes out to the server and
> says "I've got this workstation name - who's logged on to
> it?" I don't know if this is possible, but it sure would
> be nice.
>
> Thanks.
> Bill Lugg
>
> >-----Original Message-----
> >Here are the API calls for the computer name:
> > http://www.mvps.org/access/api/api0009.htm
> >and network user name:
> > http://www.mvps.org/access/api/api0008.htm
> >
> >--
> >Allen Browne - Microsoft MVP. Perth, Western Australia.
> >Tips for Access users - http://allenbrowne.com/tips.html
> >Reply to the newsgroup. (Email address has

> spurious "_SpamTrap")
> >
> >"William Lugg" <(E-Mail Removed)> wrote in message
> >news:079701c35a8b$8230dc20$(E-Mail Removed)...
> >> I'm attempting to build a tool to show a requesting

> user a
> >> list of all users that are connected to the data file

> in a
> >> split database. I'm using the MS KB article 198755

> sample
> >> code to generate the list. The problem is that it shows
> >> the workstation name and "ADMIN" as the user account.
> >>
> >> Is there a way through the Windows API to pass in a
> >> workstation name and get back the username of the user
> >> logged on to that workstation?
> >>
> >> Thanks.
> >> Bill Lugg
> >> (E-Mail Removed)

> >
> >
> >.
> >



 
Reply With Quote
 
William Lugg
Guest
Posts: n/a
 
      4th Aug 2003
That was just the ticket! I had to do a little work on it
to make it do what I was looking for, but the meat is
there. Frankly, I was surprised to find there are more
logons to the WS than one might initially think.

Thanks for the help.
Bill Lugg

>-----Original Message-----
>You might want to take a look at the code at this link:
>
>http://www.mvps.org/vbnet/index.html?

code/network/netwkstauserenum.htm
>
>--
>Cheryl Fischer
>Law/Sys Associates
>Houston, TX
>
>"William Lugg" <(E-Mail Removed)> wrote in message
>news:070f01c35a92$b6a900c0$(E-Mail Removed)...
>> Thanks, but that only works on the local machine, right?
>>
>> I need something that goes out to the server and
>> says "I've got this workstation name - who's logged on

to
>> it?" I don't know if this is possible, but it sure

would
>> be nice.
>>
>> Thanks.
>> Bill Lugg
>>
>> >-----Original Message-----
>> >Here are the API calls for the computer name:
>> > http://www.mvps.org/access/api/api0009.htm
>> >and network user name:
>> > http://www.mvps.org/access/api/api0008.htm
>> >
>> >--
>> >Allen Browne - Microsoft MVP. Perth, Western

Australia.
>> >Tips for Access users -

http://allenbrowne.com/tips.html
>> >Reply to the newsgroup. (Email address has

>> spurious "_SpamTrap")
>> >
>> >"William Lugg" <(E-Mail Removed)> wrote in

message
>> >news:079701c35a8b$8230dc20$(E-Mail Removed)...
>> >> I'm attempting to build a tool to show a requesting

>> user a
>> >> list of all users that are connected to the data file

>> in a
>> >> split database. I'm using the MS KB article 198755

>> sample
>> >> code to generate the list. The problem is that it

shows
>> >> the workstation name and "ADMIN" as the user account.
>> >>
>> >> Is there a way through the Windows API to pass in a
>> >> workstation name and get back the username of the

user
>> >> logged on to that workstation?
>> >>
>> >> Thanks.
>> >> Bill Lugg
>> >> (E-Mail Removed)
>> >
>> >
>> >.
>> >

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get username from workstation? Richard Microsoft Access VBA Modules 2 28th Jan 2009 04:01 AM
Programs not installing with Username - How to supply username Norman Rosenthal Windows XP Help 7 18th Sep 2004 07:16 PM
question about retreiving info from adminstrator username to current username =?Utf-8?B?c2VwdGVtYmVy?= Windows XP Help 0 5th Jan 2004 04:31 AM
XP workstation cannot open shares on WIN98 workstation Franklin Sterns Windows XP Networking 2 19th Oct 2003 02:15 PM
Migrate Printer Definitions from NT4 Workstation to W2K Workstation Julie Microsoft Windows 2000 Printing 1 26th Aug 2003 02:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:24 PM.