Windows Scripting
  Home arrow Windows Scripting arrow Page 3 - System Properties, Startup, and Shutdown
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WINDOWS SCRIPTING

System Properties, Startup, and Shutdown
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2007-01-11

    Table of Contents:
  • System Properties, Startup, and Shutdown
  • 6.2 Automatically Setting the Time on a PC Not Connected to a Domain
  • 6.3 Changing the System Name
  • 6.4 Create a Multiboot Menu

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    System Properties, Startup, and Shutdown - 6.3 Changing the System Name


    (Page 3 of 4 )

    Problem

    You want to change the name of your computer, or a computer on a domain on which you have administrative privileges.

    Solution

    Using a graphical user interface

    1. Right-click My Computer, choose Properties, and click the Computer Name tab.
    2. Click the Change button.
    3. In the Computer Name Changes dialog box, shown in Figure 6-3, type in your new computer name in the Computer Name box. Click OK and then click OK again.


      Figure 6-3.  The Computer Name Changes dialog box

      You can only use this technique on your own computer, not on another computer in a domain to which you’re attached.

    Using a command-line interface

    If you want to rename a computer that is a member of an Active Directory domain, you can use thenetdom tool. You’ll be able to rename not just the computer you’re attached to, but others as well, as long as you have administrative permission to do so on the PC. You can do this only on Windows XP Professional, not on Home Edition.

    To change a computer’s name, do the following:

    1. Install the Windows XP Support Tools from the Support\Tools folder on the Windows XP Professional CD.
    2. At the command line, use thenetdomcommand line tool to rename a computer, using this syntax:

        > netdom renamecomputer machine /newname:new_computername / userd:domainname\ 
        administrator_id /passwordd:* / usero:local_admin /passwordo:* / reboot:seconds
        before automatic reboot

    Following is an explanation of the syntax:

    Machine
       The current name of the computer that you want to
       rename.

    New_computername
      
    The new name that you want to give to the
       computer.

    Domainname\administrator_id
       The NetBIOS domain name and the administrator
       identification (ID) of the user account that has
       administrative permissions to the computer that you
       want to rename.

    Local_admin
       A user who has local administrative permissions. This
       can be the same account that you specified
       for /userd.

    The asterisk symbol (*)
       Used for the /passwordd: and /passwordo:
       parameters. It specifies that the password should be
       typed with hidden characters when the command is 
       submitted, for security purposes.

    Seconds before automatic reboot, in seconds
      
    The amount of time, in seconds, before the computer
       restarts after it is renamed. If you don’t specify this
       parameter, the computer will have to be restarted
       manually.

    /userd
      
    The user account used to make the connection with
       the domain specified by the /Domain 
       argument. 

    /usero
      
    The user account for making the connection with the
       trusting domain.

    Discussion

    Using a graphical user interface

    When using the Computer Name tab, make sure you do not confuse the computer description with the computer name. The computer name is what will show up on a network and will be what your computer is called. The description allows you to provide more details about the computer, for example, “computer in the downstairs living room.”

    Using a command-line interface

    When you use netdom to rename a computer, you may see the following, lengthy message: “This operation will rename the computer “Mycomputer” to “Yourcomputer.” Certain services, such as certification authority, rely on a fixed computer name. If any services of this type are running on “Mycomputer”, a computer name change would have an adverse impact.” You’ll then be prompted to proceed. If you don’t want this warning to appear, and don’t want to be prompted to proceed, use the/forceswitch when you enter thenetdom command in addition to the other parameters you use.

    See Also

    MS KB 298593, “How To Use the Netdom.exe Utility to Rename a Computer in Windows XP”

    More Windows Scripting Articles
    More By O'Reilly Media


       · This article is an excerpt from the book "Windows XP Cookbook," published by...
     

    Buy this book now. This article is excerpted from chapter six of the Windows XP Cookbook, written by Robbie Allen, Preston Gralla (O'Reilly; ISBN: 0596007256). Check it out today at your favorite bookstore. Buy this book now.

    WINDOWS SCRIPTING ARTICLES

    - Introducing Two-Way Data Binding using Silve...
    - Silverlight 2.0 Application Development with...
    - Burning Multisession CDs with IMAPI2 in WSH
    - Creating a Silverlight 2.0 Application that ...
    - Burning CDs with the IMAPI2 Control
    - Burning CDs in Windows XP with WSH
    - Advanced Word Object Scripting
    - Reading and Printing Word Documents in WSH
    - Scripting Microsoft Word
    - Using WSH to Catalog MP3 Files
    - Reading MP3 ID3 Tags in WSH
    - A Brief Look at Menus in WPF
    - More Examples of Simplified Image Processing...
    - Completing a WPF To-Do List Application
    - Simplified Image Processing in GDI+





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT