get the comuter name on the desktop automatically

Posted on 2006-04-06
Last Modified: 2010-04-17

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

kind regards
Question by:anoym
    LVL 15

    Accepted Solution


    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,
    LVL 5

    Assisted Solution

    This site will display info on your desktop. IP, MAC Address, Computer Name, Lots of good good free stuff. !!!!!
    LVL 3

    Assisted Solution

    Check this registry setting

    LVL 10

    Assisted Solution

    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

    It will Show an System Name in your desktop

    Udayakumar Ethirajulu.
    LVL 25

    Assisted Solution

    At the Command Line or in a batch file:

    Echo %ComputerName%
    LVL 5

    Expert Comment

    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?


    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    MaxSpan challenge 9 51
    Replace a tag with sed 2 32
    countPairs challenge 7 39
    groovy example issue 10 34
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now