Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easy was of finding out computer name 1

Status
Not open for further replies.

colners

Technical User
Mar 21, 2003
72
GB

My Company restricts desktops using system policies so that nothing can be seen. i.e. there is no My Computer or Network Neighborhood, etc. All they can see is a customised Program Files list and the Run option.

Is there an easy way of finding out a computer name on NT Workstation/W2K Pro by using the Run option or the command prompt?

I do not want to ask the user to log off just to find their computer name.

Regards,
 
Hi,

From the command prompt (start -> run cmd.exe) type
ECHO %COMPUTERNAME%

and this will show the computer's name. You could create a batch file consisting of:
Code:
@ECHO OFF
ECHO This computer's name is %COMPUTERNAME%
PAUSE
then have them run this from a network drive or whatever to display it on screen.

John
 

Thanks. That small bit of knowledge will help a lot.

Regards.
 
Of course, an alternative is something that I did at an ex employer: fixed a label to the front of the system unit with the machine name on it.

John
 
Labels work really well, but they're seldom updated.
Another option is (from the command prompt)

ipconfig /all

Gives you the host name (machine name) at the top followed by the ip address.

Using the IP address only, you can user TRACERT to get the machine name as well..

-IQ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top