|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
how to get the Process Username with runas /netonlyI 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, <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: ED***@mvps.org WWW: Http://EDais.mvps.org/
Interview Questions Feb 01 2006
TimeOfDay adds 1/1/0001 to the Time value? Exemple needed to reorganize nodes(treeview) with mouse (change Nodes order) Generating a WSDL for your Web Service Select Case and If Then Decisions Need help with OLEDB query expression AlternatingItemStyle color question Security/Permission issues with Citrix and VB.Net string to double try parse ---decimals lost XP 64 and VS 2003 |
|||||||||||||||||||||||