get the comuter name on the desktop automatically

hi

howto get the comuter name on the desktop automatically under WIN2000 SP4 ?

kind regards
anoym
LVL 2
anoymAsked:
Who is Participating?
 
Ralf KlattEmployee in Civil ServiceCommented:
Hi,

What do you mean?

Shall the computer name be displayed in a messagebox after login?

... I'd suggest the following vbscript:


Set WshNetwork = WScript.CreateObject("WScript.Network")
WScript.Echo "You Computer Name = " & WshNetwork.ComputerName


Save it to a file named "MyComputerName.vbs" ... right-click the file after saving and click on "Open" ... your computer name will be displayed ... to automate this you'd have to bind it to any logon script your users have in your network!


Best regards,
Raisor
0
 
Computerguy107Commented:
This site will display info on your desktop. IP, MAC Address, Computer Name, Lots of good good free stuff. !!!!!  http://www.sysinternals.com/Utilities/PsInfo.html
0
 
Raj_KauCommented:
Check this registry setting

http://www.winguides.com/registry/display.php/370/

Raj
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
Uday EthirajuluCTOCommented:
If you are using .Net

You can use the Namespace System.Environment

In that Namespcace you can retreive the total informations about your system and your ip and you dns details everything

for example
         MessageBox.Show(System.Environment.MachineName.ToString())


It will Show an System Name in your desktop


Regards,
Udayakumar Ethirajulu.
0
 
InteractiveMindCommented:
At the Command Line or in a batch file:

Echo %ComputerName%
0
 
shtsonCommented:
If you're running a computer network with a domain, you can create login scripts for all the users

in one such script, you read (by using any of the methods above) the computer name - and create a background image with that text smack in the middle of it.

then simply set the desktop background with it (via code)

is that what you need?

Cheers,
Shai
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.