Get Computer Name and User Name logged on

  • Thread starter Thread starter Vivek Sharma
  • Start date Start date
V

Vivek Sharma

Hi There,

Is there a way I can figure out the computer name and the user logged on?

Thanks
Vivek
 
Environment.MachineName & Environment.UserName (or
System.Security.Principal.WindowsIdentity.GetCurrent().Name)


Hi There,

Is there a way I can figure out the computer name and the user logged on?

Thanks
Vivek
 
Back
Top