none
how to get current user from a process which runs under SYSTEM act RRS feed

  • Question

  • Hi,

    I need to obtain the username of the currently logged in windows user on a
    machine. However, the program that needs to do this will be running
    under different credentials to the logged in user, so using
    Environment.UserName will give the user name of the user that is
    running the program.

    So is there any way to get the currently logged in user from a process which runs under SYSTEM credentials.

    Thanks in advance

    Tuesday, October 6, 2015 11:21 AM

Answers

All replies