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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Raj_KauCommented:
Check this registry setting

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

Raj
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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.
InteractiveMindCommented:
At the Command Line or in a batch file:

Echo %ComputerName%
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.