Most of the time I am using virtual machines for developing installation scripts and operating system images. With Microsoft App-V sequencer I am depending on using virtual machines, and snapshots to revert to the previous state after sequencing process is done. Many times these snapshots are older than 30 days and now and then I run into this small and annoying issues.
If I encountered this then I had to go to “Active Directory Users and Computers” console, find the computer object, reset the computer account, log-in with local administrator account on the system, join to a workgroup, reboot, log-in again with administrator account and join the system back to the domain. All these steps could take up to 30 minutes depending on my other activities.
Back in the old days I used the netdom.exe command and I remembered there was an option to reset the machine account password with the domain controller. On the web I did some research and found a working solution for me.
Out of the box netdom.exe tool is not available on Windows 7 (I am using 32bit enterprise version). To get the command utility I had to install Remote Server Administration Tools (KB958830) and copy that on a network share.
I found out that the netdom.exe utility needs to stored in C:\Windows\System32 and netdom.exe.mui file should be copied to C:\Windows\System32\en-US folder. If the netdom.exe location is wrong or the mui file is missing netdom.exe won’t show anything when started.
Download netdom.exe from here. These two files have been exacted from KB958830.
How to reset machine account password on Windows 7?
- Make sure the netdom.exe and netdom.exe.mui files are stored in the mentioned folder locations
- Open an elevated command prompt
- Run: netdom.exe resetpwd /server:domaincontroller /userD:ivan /passwordD *
- Enter password
- Reboot the machine