You can rename a computer that is in domain controller or in LAN using netdom command
Command
netdom renamecomputer Computername /newname:new_computername
/userd:domain\UserName /passwordd:password |* /usero:UserName
/passwordo:password |* /force /reboot:Time in seconds
The following is a description of this command line: netdom renamecomputer Computername /newname:new_computername
/userd:domain\UserName /passwordd:password |* /usero:UserName
/passwordo:password |* /force /reboot:Time in seconds
- Computername: The current name of the computer to be renamed.
- New_computername: The name that the computer will be renamed to. Both the Domain Name System (DNS) host label and the NetBIOS name are changed to the new name. If the new name is longer than 15 characters, the NetBIOS name is derived from the first 15 characters.
- /userd:Domain\UserName: The user account to be used for the destination domain. This account is used to make the connection with the domain to which the computer is joined. This parameter is required, and if no domain is specified, the computer's domain is assumed.
- /usero:UserName: A user account to be used for the originating domain that has local administrative permissions (this can be the same account specified for /userd:). This account is used to make the connection with the computer to be renamed. If omitted, the currently logged on user's account is used. The user's domain can be specified as "/uo:domain\user". If the domain is omitted, a local computer account is assumed.
- /passwordd: password: The password of the user account specified by /userd.
- /passwordo: password: The password of the user account specified by /usero.
The asterisk symbol (*): A value that can be connected to either /passwordd or /passwordo and which indicates to prompt for the password. - force: 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: This specifies that the computer should be shut down and automatically restarted after the rename operation is completed. The number of seconds before automatic shutdown can also be provided. The default is 30 seconds. If this parameter is not specified, the computer must be restarted manually.


0 comments:
Post a Comment