• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 144
  • Last Modified:

Determine Which network user is logged into

I have a MS MDE that connects to a SQL back-end. I need to be able to determine if the user is logged into the network or is logging in through the VPN. Is there a way to do this and if so how? Additionally, is there a way to automatically call the VPN connection if the user is not logged into the network from within the building?

Currently connections are made through ODBC. Initially the user is asked to build the connection and the settings are stored in the registry (ie NT security or SQL security). NT is obviously chosen for in-house users and SQL is chosen for users who must access the system via VPN. I just need to know how to detect these different types to eliminate errors the user would not understand.

Thanks in advance!
  • 3
1 Solution
Shiju SasidharanAssoc Project ManagerCommented:
hi try this

Retrieving User, Share and Share User Name for Network Resources


Shiju SasidharanAssoc Project ManagerCommented:
Obtaining Workstation Configuration and Current User
Shiju SasidharanAssoc Project ManagerCommented:

Obtaining Workstation User Logon Information

Obtaining Workstation Configuration and User Logon Information
jamieschallerAuthor Commented:
I ended up going with this:

This gave me exactly what I was looking for, just the domain name, which will allow me to code additional calls for VPN users. Thanks for the suggestions!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now