473,322 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Finding workstation NTID

Hello - I have already developed a database that can identify the
workstation ID of users logged into a specific database.

I would additionally like to know the workstation users NTID (login
name). How is this possible, if at all?

Thanks in advance,
David
Nov 13 '05 #1
4 4400
See if this will help.

http://www.mvps.org/access/api/api0008.htm
http://www.mvps.org/access/api/api0066.htm
http://www.mvps.org/access/api/api0062.htm
http://www.mvps.org/access/api/api0058.htm

And, although you say you've already worked this out, there may be some more
ideas for you here on the computer name.

http://www.mvps.org/access/api/api0009.htm

--
Wayne Morgan
MS Access MVP
"David White" <fe********@gmail.com> wrote in message
news:6b**************************@posting.google.c om...
Hello - I have already developed a database that can identify the
workstation ID of users logged into a specific database.

I would additionally like to know the workstation users NTID (login
name). How is this possible, if at all?

Thanks in advance,
David

Nov 13 '05 #2
I've seen these api's but what's wrong with:

environ("username")

a built in vba function to get the value of the environmental variable username.

or:

dim wshNetwork as object
dim strUserName as string

set wshNetwork = createobject("wscript.network")

strUserName = wshNetwork.username

set wshNetwork = nothing

just seems simpler.
"Wayne Morgan" <co***************************@hotmail.com> wrote in message news:<aU******************@newssvr11.news.prodigy. com>...
See if this will help.

http://www.mvps.org/access/api/api0008.htm
http://www.mvps.org/access/api/api0066.htm
http://www.mvps.org/access/api/api0062.htm
http://www.mvps.org/access/api/api0058.htm

And, although you say you've already worked this out, there may be some more
ideas for you here on the computer name.

http://www.mvps.org/access/api/api0009.htm

--
Wayne Morgan
MS Access MVP
"David White" <fe********@gmail.com> wrote in message
news:6b**************************@posting.google.c om...
Hello - I have already developed a database that can identify the
workstation ID of users logged into a specific database.

I would additionally like to know the workstation users NTID (login
name). How is this possible, if at all?

Thanks in advance,
David

Nov 13 '05 #3
Dan,

I haven't tried it, but I've been told that the environment variable can be
changed by the user. As far as using the Windows Scripting method, that's
just one more thing to potentially go wrong. Also, the API will work on
older computers, such as NT4 that may not have WSH installed. Another
advantage of the API is that it is how Windows works and it should be
faster, although with the speed of today's machines that may not matter
much.

--
Wayne Morgan
MS Access MVP
"Dan Morgan" <us****@yahoo.com> wrote in message
news:fe**************************@posting.google.c om...
I've seen these api's but what's wrong with:

environ("username")

a built in vba function to get the value of the environmental variable
username.

or:

dim wshNetwork as object
dim strUserName as string

set wshNetwork = createobject("wscript.network")

strUserName = wshNetwork.username

set wshNetwork = nothing

just seems simpler.
"Wayne Morgan" <co***************************@hotmail.com> wrote in
message news:<aU******************@newssvr11.news.prodigy. com>...
See if this will help.

http://www.mvps.org/access/api/api0008.htm
http://www.mvps.org/access/api/api0066.htm
http://www.mvps.org/access/api/api0062.htm
http://www.mvps.org/access/api/api0058.htm

And, although you say you've already worked this out, there may be some
more
ideas for you here on the computer name.

http://www.mvps.org/access/api/api0009.htm

--
Wayne Morgan
MS Access MVP
"David White" <fe********@gmail.com> wrote in message
news:6b**************************@posting.google.c om...
> Hello - I have already developed a database that can identify the
> workstation ID of users logged into a specific database.
>
> I would additionally like to know the workstation users NTID (login
> name). How is this possible, if at all?
>
> Thanks in advance,
> David

Nov 13 '05 #4
"Wayne Morgan" <co***************************@hotmail.com> wrote:
I haven't tried it, but I've been told that the environment variable can be
changed by the user.


I tried it.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Belinda | last post by:
Hello All I want to install the NT 4.0 Option pack to install the IIS web server. Does the option pack install to get the web server working on my Windows NT workstation running SP6a work. I...
0
by: CartmanLabs | last post by:
Not so long ago, I was able to run MS SQL 7 Server on NT 4.0 Workstation. I am trying to get this Dev Environment Going. There was a simple work around that allowed the Server Edition. to be...
0
by: FloriZ | last post by:
Does anyone know how to install CDONTS for Windows NT 4 Workstation? My application is sending e-Mails using System.Web.Mail.SmtpMail. On a computer running NT 4.0 SP6a, we get the exception...
10
by: Zeng | last post by:
I just realized that there are 2 modes for garbage collection modes: server gs and workstation gs. Would someone know how I can go about changing the mode for my web application written in C#? I...
2
by: Steve M | last post by:
A few users today received the message "The trust relationship between this workstation and the primary domain failed" on their web browser while using an ASP.NET web app. The problem went away...
2
by: Phil Galey | last post by:
I have an application written in VB.NET, running on Windows 2000 SP 3. It uses a process object and AppActivate, followed by SendKeys commands, to control a running QuarkXPress application. On...
2
by: tricard | last post by:
Good morning, I am writing code to create a packing list number that is based on the date entered from the workstation that the user is on. However, I do not know how to determine the date...
8
by: kyosohma | last post by:
Hi, I am trying to query our domain to get a list of our users profile locations. I thought I might be able to use WMI, but I can't get it to work. I am using a Windows XP Pro workstation and...
12
by: Bob Cramer | last post by:
I'm a developer using XP Pro for developing business apps with Visual Studio.NET and SQL Server. My current workstation is a few years old and uses a single IDE drive. I'm looking to build a new...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.