Just like Netdom, Replmon.exe is a part of the Windows 2000/XP/2003 Support Tools.
To use netdom, you must run the netdom command from an elevated command prompt. The FSMO role holders can be easily found by use of the Netdom command. To open an elevated command prompt, click Start, right-click Command Prompt, and then click Run as administrator. To fix the issue, close your existing command window (it’ll retain the old path), and go to your Environment Variables in advanced system properties. To use netdom, you must run the netdom command from an elevated command prompt. Turns out the problem is related to the path variable! Sometimes though, especially after installing the Windows Support Tools on a server, you can get the following error when running netdom (and other system tools) : The procedure entry point I_NetNameValidate could not be located in the dynamic link library NETAPI32.dll. Rather than searching my documentation to find the FSMO role holders, it’s easier to log on to a server and run “netdom query fsmo” in a command prompt. I manage and am responsible for Active Directory for a number of customers, both public and private sector.
The Netdom.exe tool resets the account password on the computer locally (known as a 'local secret') and writes this change to the computer's computer account object on a Windows domain controller that resides in the same domain.
Yay, it’s time for another technical post! The Netdom.exe tool is also included in Windows Server 2008 R2 and in Windows Server 2008.