Getting VPN user name and domain on local machine

G

Guest

If I VPN into a remote network from my machine, is there a way to get the
user name and domain of the user who connected through VPN from my computer?

WindowsIdentity.GetCurrent().Name
Environment.UserName
SystemInformation.UserName
Environment.GetEnvironmentVariable("USERNAME")

These all return the local user (as expected). How do I get the VPN user
who connected to the remote network?
 
J

John Saunders

Dan Suceava said:
If I VPN into a remote network from my machine, is there a way to get the
user name and domain of the user who connected through VPN from my
computer?

WindowsIdentity.GetCurrent().Name
Environment.UserName
SystemInformation.UserName
Environment.GetEnvironmentVariable("USERNAME")

These all return the local user (as expected). How do I get the VPN user
who connected to the remote network?

You would have to ask the device which the user VPN'd into. It's the only
device which would know.

Once VPN'd into the network, it's all just bits on the wire. The network
doesn't know where those bits came from.

John Saunders
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

VPN/LAN Printing 1
Windows 7 / Vista loses local resources when connected to VPN 5
Residential ISP VPN Provider 0
VPN DNS ISSUES 3
VPN Connectivity 2
VPN Connetivity 1
vpn 1
Remote vpn to company lan 3

Top