Reset Windows Rearm count

rearm count

When working with Machine Creation Services we discovered that the Clients all have the same CMID. A different CMID is needed to activate using KMS services. We searched for a solution and everyone mentioned rearming the machine, but then we received the message that we can’t rearm. We then searched for a solution but everyone was pointing out to set the Skiprearm to 1. When testing this we discovered that the CMID keeps the same after rearming the Windows machine.

We discovered that the “Remaining Windows Rearm Count” was 0. which means that when you set SkipRearm then you don’t rearm the machine. Knowing this we searched how to reset the Rearm count and found an article that explained how we could reset the rearm count. http://www.daniel-mitchell.com/blog/reset-windows-7-rearm-count/

To do this follow the below instructions:

  1. Create reset.bat on C:\
  2. add the following code:

    reg load HKLM\MY_SYSTEM “%~dp0Windows\System32\config\system”
    reg delete HKLM\MY_SYSTEM\WPA /f
    reg unload HKLM\MY_SYSTEM

  3. Restart your machine to repair mode using the F8 key.
  4. In the System Recovery Options menu, select Command Prompt.
  5. Now type in D:\reset.bat. The C-drive is used as a recovery partition.
  6. If the script is executed successfully, you should get the message “The operation completed successfully”.
  7. Reboot your machine.

Now the rearm count is reset to 5. You can check this using slmgr /dlv.

rearm count

Now set make sure the Skiprearm is set to 0 at the following location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\SoftwareProtectionPlatform

Now the Image is ready to deploy and the KMS server will receive different CMID’s from the servers.

Comments

  1. Raul says:

    This did not work for Windows Serer 2019
    The following error succeeded, when i finished all the steps above:

    Error 0xC0000022.
    When i did the command “slui.exe 0x2a 0xC0000022” the following message appeared:

    Access Denied.
    A process has requested access to an object but has not been granted those access rights.

    Are you able to help us?

  2. 3 says:

    I was getting next errors (Win7 VM in Virtual Box / 64bit – “reset.bat” located on C: drive – tried from D, had same issue):
    ERROR: The process cannot access the file because it is being used by another process.
    ERROR: The system was unable to find the specified registry key or value.
    ERROR: The parameter is incorrect.

    Solution for the errors above:
    1. run next two commands in your admin terminal while logged into your PC:
    net stop http
    net start http
    2. execute the steps in this article and you’ll get 3 success lines with next messages: The operation completed successfully.

    Now after restarted the machine:
    a. got the message about the product is not licensed
    b. executed slmgr /dlv as an admin
    —> got: Error: product key not found
    ^ the license is not getting rearmed, tried this multiple times with multiple restarts – never worked even though getting success at step #2 above
    NOT WORKING

Leave a Reply

Your email address will not be published. Required fields are marked *

For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.