Getting Username/Domain

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have serveral items I would to find out how to do:

1) How to get the username of the person currently logged onto a workstation;

2) How to get the username of who is logged onto a different workstation;

3) The domain the machine is in;

4) The names of the machines currently active within that domain.

Any help would be great! Many thanks.

D
 
DMC2004

You are asking administrator and user things.
1) How to get the username of the person currently logged onto a
workstation;
Environment.username

2) How to get the username of who is logged onto a different workstation;

depends on your network system
3) The domain the machine is in;
environment.usernsdomain
or
environment.userdomain


4) The names of the machines currently active within that domain.

depends on your network system

I hope this helps,

Cor
 
Back
Top