|In a simple web application I have:
TryUserName = Environment.GetEnvironmentVariable("UserName");
LogonServer = Environment.GetEnvironmentVariable("LogonServer");
YourDomainName = Environment.GetEnvironmentVariable("UserDomainName");
During development I have a VPN open to the server which is called NZ-SP-AP1.
On my home machine set gives me:-
Username = Ormond
No LogonServer or UserDomainName.
On the server, logged in as Administrator, set gives me:-
Username = Administrator
LogonServer = \NZ-SP-DC1 (correct)
When I open the web page on the server with the variables in a textbox, I get:-
TryUserName = NZ-SP-AP1$
LogonServer is blank.
UserDomainName is blank.
Does anyone know where it gets these values, particularly the Username?