i want to write the user logged in name in a file.
im logged in with the user name user
but when i use Environnement.username or WindowsIdentity.GetCurrent().Name , it returns me system
and not user
in the others forum they say that if this instruction is in a windows service, it returns the user who launched the current thread or process.
i would like to get the user logged in a not the thred launcher.
please help me