Reset Windows 7 Rearm Count

An install of Windows 7 without an activation key allows for 30 days of usage. This can however be extended up to 120 days by using the following slmgr (Software Licensing Management Tool) command to rearm or reset the 30 day trial.

slmgr /rearm

(Remember to run this command, you must right click on cmd and select “Run as administrator” for this to work) However this can only be done up to 4 times. You can view the number of rearm counts by using the command which displays the current license information:

slmgr /dlv



Notice the second to last line shows that I only have 1 more remaining rearm, after which the software will expire. However there is a small trick that allows you to reset the rearm count back to 4. To do this you need delete the registry key which contains the Last Rearm Time, however this key can not be deleted or modified during a normal user session. To delete the key you will need to run the following commands in the windows recovery console.

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

To do this save the above commands to a .bat file ‘reset.bat’ to the C:\ root folder. Restart your computer, pressing F8 to get to the Advanced Boot Options. Select the option to Repair Your Computer. Select your keyboard input method. Login with your login details. In the System Recovery Options menu, select Command Prompt. Now type in C:\reset.bat. (If it says “‘C:\reset.bat’ is not a recognised as in internal or external command” message, then it may be because the  C Drive is bring used as a recovery partition. Try again using D:\reset.bat) If successfully you should get the message “The operation completed successfully”. Next reboot your machines.

After rebooting you may get a message stating that this product is not genuine. This can be ignored. Running slmgr /dlv again will confirm that the rearm count has been increased again, thereby giving you another 120 days worth of windows use.


25 thoughts on “Reset Windows 7 Rearm Count

    • I can confirm that the first two commands are genuine, and further google searches confirm the use of reset.bat

      This won’t harm your computer.

  1. GREAT!! i did that, and now the rearm count is 5!! after i deleted the registry key which contains the Last Rearm Time, in repair mode, i restarted the windows and it poped up an error, that the registration key not found, not available, and asked for windows activation; i restarted, and the same message, to enter the key for activation. i run the cmd, run the slmgr /dlv command, and have the same error: key not found, not available.
    Plus, in the left bottom corner of my laptop screen appeared an messege that this copy of windows is not licensed!! :((
    Huh, it gaved me emotions! but after a few minutes, tha messege from the left bottom corner dissapeared! when i noticed that, i tried again the slmgr /dlv command, and….surprise! the rearm count is 5!!
    Great post, thanks for it.

    • After you run reset.bat and get the message “The operation completed successfully” and after reboot your machines. Windows will ask you enter product key for windows 7, you can enter any key of windows 7 if you skip this windows you can also try the Command Line to change or enter the Product key:

      1- Click on the Start Button and type: CMD (into the ‘Search programs and files’ field in the Start Menu)
      2 – The Start Menu will show ‘CMD.exe’,
      3 – Right-click the CMD.exe file and select Run As Administrator.
      4 – In the CMD window, type: slmgr.vbs -ipk (remove “” when you type in CMD window)

      google can help you get a product key for windows 7.

      After do that you can check rearm count by: slmgr /dlv or rearm your windows by: slmgr -rearm

  2. It all worked fine. You do have to put your Win 7 generic keycode back in, either using the GUI or using slmgr /ipk. You don’t have to activate ( if you are working on an image in audit mode, for instance ), but you will have to put the code back in. Otherwise, slmgr /dlv just returns a message that says no code was identified.

  3. I performed the steps as listed above.

    I did see that Windows was reporting that it was not genuine. Once that error cleared itself and I was able to run:

    slmgr /dlv

    It showed that my rearm count had not been increased. It is still set to one. However, my license status shows licensed with an expiration of 180 days.

    Any idea what gives?

    I am really hoping that I do not have to start over on the image as the current state reflects countless hours of configuration, install and testing.

    • It appears that I was a bit premature. 🙂

      I had my system in audit mode while attempting to reset the rearm count. Once I performed a full sysprep, the resultant image has a rearm count of 5.

      Thank you for this information. It has saved me a ton of time and grief.

      I find it extremely frustrating when I encounter issues such as this. It is hard enough to do this job without these pointless restrictions.

  4. This worked for me – main article + Sang’s steps + Daniel Mitchell’s serial. Thank you all!

  5. I have done this fix to the letter, but when I get into the part where you enter “C:\reset.bat”, but when I do I get the message
    “‘C:\reset.bat’ is not a recognised as in internal or external command”
    But more than that, I tried “D:\reset.bat” and, got
    “‘D:\reset.bat’ is not a recognised as in internal or external command”
    back from the command window.
    I’m doing it in repair mode, and I’ve tried using both “\” and “/” in the command, as well as other letters, upper case and lower case.

    The .bat file is in (C:) > Windows > System32 like every tutorial for this fix says. Is this because I have 4 drives technically?
    C: is one drive I use
    G: has a different version of Windows 7 on it.
    F: is a drive I save things to when I’m using G:
    and there’s a small drive less than a gig showing up under E: that says “System reserved”, though I have no clue what it is.

    Please help, I use my C: drive the most because it has all my programs on it.

    • Hello. Move the .bat file into the root directory, not in any sub folder. Then try again.

      • I have the exact same problem. I keep getting this message “‘C:\reset.bat’ is not a recognized as in internal or external command”. I’m getting the same message even when I tried to change (C:) into (D:) or (E:). I made sure the “.bat” file is in the root directory. Please help!!

      • Hey Daniel,

        I have the exact same problem. On entering the command ‘C:\reset.bat’ I get the message ” reset.bat is not recognized as an internal or external command”. In the system recovery options under the choose recovery tool the first line says ” Operating System: Windows 7 on (E:) OS” and I don’t know what it means. Still I’ve tried the same command with D and E and I’m getting the same message.

        I have saved that file into the root directory, not in any sub folder. Can you help?

  6. I get an error on the second command saying the it cannot find the specified reg key or value. All other commands are completed successfully, Any ideas why this maybe?

  7. Like some of the other folks, I was working on an image, and had some sysprep issues, which caused me to use up my 3 tries. Thanks so much for this info, I was able to reset to 5. This has saved me so much time, not having to start all over from scratch. Thanks so much Daniel, for posting it.

  8. My mom bought her laptop used from a pawn shop and neither of us realized her Windows wasn’t genuine until the message saying so popped up. I had been doing the re-arm thing until today when I got the message that I had exceeded the times I could do it (not realizing there was a limit).Anywho, your instructions plus Sang’s note that you will have to enter a key code worked!!! The key code here was said to be a default key code. I found another one and it worked so I’m happy. Thanks for your instructions!

  9. After first rearm “Control panel > System” says 1 day left, but “slmgr /dlv” says 27 days. Which should I trust?

  10. thanks. i placed my reset.bat file at c:\ directory.
    But at F8, repair window mode. after choosing command prompt. fail to recognize c:\reset.bat. So follow as instructed type d:\reset.bat and it works works.

    since using Ultimate win7, once rebooted. close activation window. go to command prompt & type slmgr/ipk D4F6K-QK3RD-TMVMJ-BBMRX-3MBMV

    successful message pops up. and now have 43200 trial minutes and 5 rearms thanks

  11. thank you.
    worked a treat but not sure why but it appearers my operating system is on drive H:\ once i sorted that out your tips worked perfectly

  12. Thanks a lot!

    Just in case some one you are in trouble and are repeating the mistakes I made:

    At first, I was saving the reset.bat file in a random folder and copying later in C:, and it didn’t work. I had to run the notepad as administrator and save the file directly in C:. The second complication came when I entered English in my keyboard input method instead of Spanish, the one I really use (ok, that’s quite obvious). Then, the operation completed successfully.

    The second problem came when I was entering the slmgr /dlv command in order to check if it had worked properly, and it hadn’t. But Daniel Mitchell’s answer on June 5, 2014 was the key.

Leave a comment

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