IR5 - The Official Windows 7 Rearm Solution

Discussion in 'MDL Projects and Applications' started by timesurfer, May 10, 2010.

Thread Status:
Not open for further replies.
  1. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #241 timesurfer, May 28, 2010
    Last edited: May 28, 2010
    (OP)
  2. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
  3. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #244 timesurfer, May 28, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
  4. bjf2000

    bjf2000 MDL Expert

    Apr 11, 2008
    1,101
    199
    60
    I have the Server 2008 R2 trial that defaults not to 4 30-day rearms but 5 10-day ones (total of 60 days, though they give you a key good for 180 more, but I haven't used it). Which rearm count would I reset to with this tool?
     
  5. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #246 timesurfer, May 28, 2010
    Last edited: May 28, 2010
    (OP)
    I believe it's safe to try on your registry or it would'n't work cuase we set up version/edition query for the OS being attempted to be run on. Please leave you info as to how many rearms you get since this thread is new and we can use the extra testing and information

    However in it being trial I am uncertain but I think it will...lol
     
  6. FattysGoneWild

    FattysGoneWild MDL Member

    Mar 7, 2010
    245
    28
    10
    How come this thread is not a sticky like the others? Good info in here.
     
  7. Daz

    Daz MDL Developer / Admin

    Jul 31, 2009
    9,530
    67,271
    300
    #248 Daz, May 29, 2010
    Last edited: May 29, 2010
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #249 timesurfer, May 29, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
  9. bjf2000

    bjf2000 MDL Expert

    Apr 11, 2008
    1,101
    199
    60
    It won't be for a while though. Note that the version and edition should come back the same as any other Windows Server 2008 R2 Standard (7600), so I'm not sure how it can be differentiated, but I think MS can vary the grace period by their choice of built-in key or other means. I know that there are other ISOs for this same version that are the normal 4x30.
     
  10. Daz

    Daz MDL Developer / Admin

    Jul 31, 2009
    9,530
    67,271
    300
    Suggestion by the way. Make this work on Vista ;)

    Vista should allow the same exploit and you shouldn't have to change much code either.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
  12. Daz

    Daz MDL Developer / Admin

    Jul 31, 2009
    9,530
    67,271
    300
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #254 timesurfer, May 29, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
  14. Daz

    Daz MDL Developer / Admin

    Jul 31, 2009
    9,530
    67,271
    300
    #255 Daz, May 29, 2010
    Last edited by a moderator: Apr 20, 2017
    Wouldn't even need XML, you just store the username and start time into the registry and then whenever you need it you just read the registry key.

    Code:
    schtasks /sc weekly /tn "Rearm" /tr C:\reset.bat /f
    I'm not sure what you need the username for because as far as I know task scheduling doesn't require it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #256 timesurfer, May 29, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Then just what ever is required to import task successfully since I don't want my name on the account in the .xml file or however we do this
     
  16. Daz

    Daz MDL Developer / Admin

    Jul 31, 2009
    9,530
    67,271
    300
    #257 Daz, May 29, 2010
    Last edited: May 29, 2010
    ^ Your existing command will do everything automatically, I don't see why that would need xml or even a username? :confused:

    *Edit*
    Change the rearm process to a batch file -- this bit "'C:\Windows\system32\cmd.exe' /c cscript.exe /b C:\Windows\System32\slmgr.vbs /rearm && 'C:\Windows\system32\shutdown.exe'". If in the batch file it fails to process the commands (use error handling) then it means the rearm count is up so you just need to reset the rearm count, this can all be done with your existing scheduled task.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
  18. Super_User

    Super_User MDL Junior Member

    Apr 14, 2010
    92
    55
    0
    I see IR4 got "promoted" to MDL Projects and Applications. Next step... sticky.
     
  19. Daz

    Daz MDL Developer / Admin

    Jul 31, 2009
    9,530
    67,271
    300
    /sc can be set to "ONSTART". You just need a script that runs on the start and checks how many days you have left, if it has 0 then rearm or reset ;)

    You change the whole scheduled command and you need to find out how to pull the rearm count and then you can progress.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...