Results 1 to 5 of 5

Thread: Machine Name Re-Name on Login.

  1. #1
    Senior Member
    Join Date
    Aug 2003
    Posts
    224

    Lightbulb Machine Name Re-Name on Login.

    We currently use *********** where I work to map network drives, connect printers, etc., etc., I believe that *********** is dependant on the Kix Service to do it's thing.
    Anyway,
    I'm trying to figure out a way to rename a PC upon logon to the same as the username.
    i.e. If the machine name is NEWPC1 and Joe Blow logs in as blowj, then The computer should be renamed to blowj. This may sound like a nightmare to many or you, but in my scenario, it would work great if this were possible.
    If anyone has any ideas, let me know.
    Thanks
    There are many rewarding oppurtunities awaiting composure from like minds and great ideas. It in my objective to interconnect great things.

  2. #2
    AO French Antique News Whore
    Join Date
    Aug 2001
    Posts
    2,126
    1) It's impossible to rename a machine (Windows OS) without rebooting. Well, you don't have to reboot the machine after you rename it but the new name will not working until you reboot.
    2) To rename a machine in a Windows Domain, you need the administrator login by default (It can be change so everyone can do that in your Policy Security for Win 2000 and 2003 Domain)

    Out of this idea, if you find a command line software that can rename machine, you can add it into your batch file in the login process. Good Luck
    -Simon \"SDK\"

  3. #3
    Senior Member
    Join Date
    Aug 2003
    Posts
    224
    The reboot after machine name re-name would not be a problem. Since all clients are XP, the Run As service will allow a machine name change without an Admin being logged on. I don't really see this as being too difficult of a task if there is a command line that could do this.
    Of course, since this is not a practical application, I doubt I will find anyone that has done this before
    There are many rewarding oppurtunities awaiting composure from like minds and great ideas. It in my objective to interconnect great things.

  4. #4
    AO French Antique News Whore
    Join Date
    Aug 2001
    Posts
    2,126
    Check this

    http://www.sysinternals.com/ntw2k/source/newsid.shtml

    Or check other program from SysInternals, they might interest you.
    -Simon \"SDK\"

  5. #5
    Senior Member
    Join Date
    Aug 2003
    Posts
    224
    Starting with Windows XP the netdom tool, from the Windows XP support tools, can perform a local or remote rename of a domain member computer.

    When you type netdom /help renamecomputer, the CMD prompt displays:

    The syntax of this command is:
    NETDOM RENAMECOMPUTER machine /NewName:new-name
    /UserD:user [/PasswordD:[password | *]]
    [/UserO:user [/PasswordO:[password | *]]]
    [/Force]
    [/REBoot[:Time in seconds]]

    NETDOM RENAMECOMPUTER renames a computer that is joined to a domain. The
    computer object in the domain is also renamed. Certain services, such as the
    Certificate Authority, rely on a fixed machine name. If any services of this
    type are running on the target computer, then a computer name change would
    have an adverse impact.

    machine is the name of the workstation, member server, or domain controller
    to be renamed

    /NewName Specifies the new name for the computer. Both the DNS host
    label and the NetBIOS name are changed to new-name. If
    new-name is longer than 15 characters, the NetBIOS name is
    derived from the first 15 characters

    /UserD User account used to make the connection with the domain
    to which the computer is joined. This is a required parameter.
    The domain can be specified as "/ud:domain\user". If domain is
    omitted, then the computer's domain is assumed.

    /PasswordD Password of the user account specified by /UserD. A * means
    to prompt for the password

    /UserO User account used to make the connection with the machine to
    be renamed. If omitted, then the currently logged on user's
    account is used. The user's domain can be specified as
    "/uo:domain\user". If domain is omitted, then a local computer
    account is assumed.

    /PasswordO Password of the user account specified by /UserO. A * means
    to prompt for the password

    /Force As noted above, this command can adversely affect some services
    running on the computer. The user will be prompted for
    confirmation unless the /FORCE switch is specified.

    /REBoot Specifies that the machine should be shutdown and automatically
    rebooted after the Rename has completed. The number of seconds
    before automatic shutdown can also be provided. Default is
    30 seconds
    There are many rewarding oppurtunities awaiting composure from like minds and great ideas. It in my objective to interconnect great things.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •