how to get the Process Username with runas /netonly

  • Thread starter MS MVP ??? for VB.NET
  • Start date
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
 
M

Mike D Sutton

I am trying to get the Process UserName by using System.Enviorment.Username,
<snip>

Sounds to me like you're working in VB.NET where as this group is for VB (Classic) support only. You may want to try
some of the groups listed here instead:
Http://EDais.mvps.org/DotNet/
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: (e-mail address removed)
WWW: Http://EDais.mvps.org/
 

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

Top