Username and pc name

J

John

Hi

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

Thanks

Regards
 
K

kimiraikkonen

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
 

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

Top