Announcement

Collapse
No announcement yet.

Rename Computer Account in AD

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Rename Computer Account in AD

    How we can rename a Computer Account in AD? Right clicking the Computer Account doesn't give option to rename a Computer Account in AD as it does if you right click on a User Account in AD. Can any one please help?
    Thanks

  • #2
    Re: Rename Computer Account in AD

    Rename the computer account on the computer.

    Or

    Create a new computer account object in AD.

    Bottom line is renaming the computer account would require renaming the computer account on the computer anyway.
    VCDX3 #34, VCDX4, VCDX5, VCAP4-DCA #14, VCAP4-DCD #35, VCAP5-DCD, VCPx4, vEXPERTx4, MCSEx3, MCSAx2, MCP, CCAx2, A+
    boche.net - VMware Virtualization Evangelist
    My advice has no warranties. Follow at your own risk.

    Comment


    • #3
      Re: Rename Computer Account in AD

      So it means that if I'll change a computer name on the computer it'll change in AD automatically using the SID of computer?
      Lets assume: I create a Computer Account "A" in AD, this makes a place holder for Computer "A", than I add this computer to the domain. Later on: if I'll change the name of computer "A" on the computer console to Computer "B", does it gonna automatically change in AD as well?
      Thanks

      Comment


      • #4
        Re: Rename Computer Account in AD

        With 2k3, yes. In previous versions, one could not change the computer name on the fly while it was a member of a domain. One had to remove the computer from the domain, change the name, then re-add it to the domain.

        Jas
        VCDX3 #34, VCDX4, VCDX5, VCAP4-DCA #14, VCAP4-DCD #35, VCAP5-DCD, VCPx4, vEXPERTx4, MCSEx3, MCSAx2, MCP, CCAx2, A+
        boche.net - VMware Virtualization Evangelist
        My advice has no warranties. Follow at your own risk.

        Comment


        • #5
          Re: Rename Computer Account in AD

          Thanx indeed

          Comment


          • #6
            Re: Rename Computer Account in AD

            Just for the sake of curiosity, can we rename the Computer Name using "dsmod" command?

            Comment


            • #7
              Re: Rename Computer Account in AD

              Originally posted by eazad View Post
              Just for the sake of curiosity, can we rename the Computer Name using "dsmod" command?
              No. Doesn't look like it.

              C:\>dsmod computer /?
              Description: Modifies an existing computer in the directory.
              Syntax: dsmod computer <ComputerDN ...> [-desc <Description>]
              [-loc <Location>] [-disabled {yes | no}] [-reset]
              [{-s <Server> | -d <Domain>}] [-u <UserName>]
              [-p {<Password> | *}] [-c] [-q] [{-uc | -uco | -uci}]
              Parameters:

              Value Description
              <ComputerDN ...> Required/stdin. Distinguished names (DNs) of one
              or more computers to modify.
              If target objects are omitted they
              will be taken from standard input (stdin)
              to support piping of output from another command
              to input of this command.
              -desc <Description> Sets computer description to <Description>.
              -loc <Location> Sets the location of the computer object to
              <Location>.
              -disabled {yes | no} Sets whether the computer account is disabled (yes)
              or not (no).
              -reset Resets computer account.
              {-s <Server> | -d <Domain>}
              -s <Server> connects to the domain controller (DC)
              with name <Server>.
              -d <Domain> connects to a DC in domain <Domain>.
              Default: a DC in the logon domain.
              -u <UserName> Connect as <UserName>. Default: the logged in user.
              User name can be: user name, domain\user name,
              or user principal name (UPN).
              -p <Password> Password for the user <UserName>. If * then prompt
              for password.
              -c Continuous operation mode. Reports errors but
              continues with next object in argument list when
              multiple target objects are specified.
              Without this option, the command exits on first
              error.
              -q Quiet mode: suppress all output to standard output.
              {-uc | -uco | -uci} -uc Specifies that input from or output to pipe is
              formatted in Unicode.
              -uco Specifies that output to pipe or file is
              formatted in Unicode.
              -uci Specifies that input from pipe or file is
              formatted in Unicode.

              Remarks:
              If a value that you supply contains spaces, use quotation marks
              around the text
              (for example, "CN=DC2,OU=Domain Controllers,DC=microsoft,DC=com").
              If you enter multiple values, the values must be separated by spaces
              (for example, a list of distinguished names).

              Examples:
              To disable multiple computer accounts:

              dsmod computer CN=MemberServer1,CN=Computers,DC=microsoft,DC=com
              CN=MemberServer2,CN=Computers,DC=microsoft,DC=com
              -disabled yes

              To reset multiple computer accounts:

              dsmod computer CN=MemberServer1,CN=Computers,DC=microsoft,DC=com
              CN=MemberServer2,CN=Computers,DC=microsoft,DC=com -reset

              See also:
              dsmod computer /? - help for modifying an existing computer in the directory.
              dsmod contact /? - help for modifying an existing contact in the directory.
              dsmod group /? - help for modifying an existing group in the directory.
              dsmod ou /? - help for modifying an existing ou in the directory.
              dsmod server /? - help for modifying an existing domain controller in the
              directory.
              dsmod user /? - help for modifying an existing user in the directory.
              dsmod quota /? - help for modifying an existing quota specification in the
              directory
              dsmod partition /? - help for modifying an existing partition in the
              directory

              Directory Service command-line tools help:
              dsadd /? - help for adding objects.
              dsget /? - help for displaying objects.
              dsmod /? - help for modifying objects.
              dsmove /? - help for moving objects.
              dsquery /? - help for finding objects matching search criteria.
              dsrm /? - help for deleting objects.
              dsmod failed:The parameter is incorrect.
              type dsmod /? for help.
              C:\>
              VCDX3 #34, VCDX4, VCDX5, VCAP4-DCA #14, VCAP4-DCD #35, VCAP5-DCD, VCPx4, vEXPERTx4, MCSEx3, MCSAx2, MCP, CCAx2, A+
              boche.net - VMware Virtualization Evangelist
              My advice has no warranties. Follow at your own risk.

              Comment


              • #8
                Re: Rename Computer Account in AD

                dsmod modifies the AD object and does not touch the computer, hence it's the same as changing computer settings in ADU&C.
                You can rename the computer using "netdom computername" with parameters - it will change the name on the computer side and will rename the object in AD.
                Guy Teverovsky
                "Smith & Wesson - the original point and click interface"

                Comment

                Working...
                X