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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top