I've been mucking about with Environment.UserName and similar
properties in .NET. I can get the user's login name for their machine,
but unfortunately that doesn't get me much for users logged into our
corporate network through laptops: all its gets me is their user ID on
the laptop, which means nothing at the corporate level.
Does anyone know how I can get my hands on the username that was used
to log into Microsoft Networking? This is our corporate user name and
it's what I should be using to stamp record updates, etc.
As well, does anyone know how to get my hands on the user's default
e-mail address, the one that Outlook (et al) uses by default when you
send an e-mail message?