M
MS MVP ??? for VB.NET
Dear all,
I am trying to get the Process UserName by using System.Enviorment.Username,
I have no problem by normal "run" and by "runas". I can get the process
Username with correct value. However, I try to use "runas /netonly" to
execute the program I developed, I found out that it is returning the local
logon username. But I would like to get the user credential for the remote
access. How?
--
Regards
Ken Lin, Kam Hung
Founder and VP of Hong Kong .NET User Group(http://HKNetUG.com)
MCP, MCP+I, MCDST, MCSA, MCSE(NT4 & win2k),
MCSE+I, MCDBA(SQL7 & SQL2K), MCSD(VB6 & .NET), MCAD(.NET)
Microsoft Community Star(Hong Kong & Taiwan)
Microsoft Most valuable Professional(.NET)
MCT2004 & 2005
I am trying to get the Process UserName by using System.Enviorment.Username,
I have no problem by normal "run" and by "runas". I can get the process
Username with correct value. However, I try to use "runas /netonly" to
execute the program I developed, I found out that it is returning the local
logon username. But I would like to get the user credential for the remote
access. How?
--
Regards
Ken Lin, Kam Hung
Founder and VP of Hong Kong .NET User Group(http://HKNetUG.com)
MCP, MCP+I, MCDST, MCSA, MCSE(NT4 & win2k),
MCSE+I, MCDBA(SQL7 & SQL2K), MCSD(VB6 & .NET), MCAD(.NET)
Microsoft Community Star(Hong Kong & Taiwan)
Microsoft Most valuable Professional(.NET)
MCT2004 & 2005