471,348 Members | 1,557 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

Getting Username/Domain

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
Jul 21 '05 #1
1 1750
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
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Buddy Ackerman | last post: by
3 posts views Thread by John Smith | last post: by
11 posts views Thread by Derek Martin | last post: by
2 posts views Thread by Scott M. Lyon | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.