Problem: A computer (or several computers) on your domain need to be renamed quickly and reliably without making a mess of Active Directory.
Solution: Use the NETDOM
utility that comes with the Windows Server Support Tools (SupportTools.msi on the Windows Server media).
If it is not already installed, you will want to install the SupportTools.msi package on a server, or your admin computer (must be a domain member). After installing the Support Tools, ensure that the tools are within your path. This can be done one of two ways:
- Copy/move them to the
%SYSTEMROOT%\system32
folder. - Add their path to your
PATH
environment variable in System Properties->Advanced->Environment Variables
To test your path settings, type NETDOM /?
at a command prompt. If you get the NETDOM
documentation you are all set. If not, type echo %path%
at a command prompt and make sure that the support tools are located in one of the returned folders.
I have written a simple script that runs NETDOM
interactively and lets you rename multiple computers and verify your input. It can be downloaded here: rendomcomp.txt
This file must be renamed from .txt to .bat and requires that the NETDOM
utility is already installed and in your PATH
. Once renamed, simply double-click the file.
-n
No comment yet
2 pings
Ken says:
October 22, 2014 at 4:57 am (UTC -6)
Awesome! Thanks for this. I really ensure and added their path within mine.
ebe tiu says:
April 22, 2015 at 12:18 am (UTC -6)
been using netdom lately. great help from that. nice post!