Username and pc name

  • Thread starter Thread starter John
  • Start date Start date
Hi

How can I get the windows login name and workstation name using vb.net?

Thanks

Regards

John,
Use "My.User.Name" to get current user logged onto Windows.

and

Use "My.Computer.Name" to get computer name.

and

Use "My.Computer.Info.OSFullName" to get operating system's name.

Regards,

Onur Güzel
 
Back
Top