"System.Environment.UserName" returned the result as "SYSTEM".
Because I logged in as "frank", I wish I could get username "frank".
I am testing it on Win2K. But I think it should be the same on WinXP.
Frank
"Champika Nirosh" <no****@textcentric.lk> wrote in message news:<ec*************@tk2msftngp13.phx.gbl>...
System.Environment.UserName
Nirosh
"Frank Meng" <me*******@hotmail.com> wrote in message
news:1a**************************@posting.google.c om... Hi.
Can system service identify current active user with .net?
I need current active user's logon name from system service.
I tried WindowsIdentity.GetCurrent().Name and it gave me "NT
AUTHORITY\SYSTEM" even I did logon.
Thank you for your help in advance.
Frank