Rearm Wizard - The Premier Rearm Solution for Windows 7 and Office 2013

Discussion in 'MDL Projects and Applications' started by timesurfer, Mar 27, 2013.

  1. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    This is so weird!!!! I installed Win 7 HP and D420. Used the rearm script you give me, forwarded time. Log out/in and my background never went back. What am I forgetting?

    UPDATE

    I got it. Ran the rearm script again and got the water mark and logged out/in and it was black for a short time period which then it restored a background.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    #722 Humphrey, Jun 27, 2013
    Last edited by a moderator: Apr 20, 2017
    Made a slight alteration to the script. This way it ask you to enter the date and also stops/starts the service so that its officially in notifications/showing water mark. Might add log off later, idk.

    Code:
    @echo off
    CLS
    mode con: cols=50 lines=12
    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
    if '%errorlevel%' NEQ '0' (
    echo Requesting administrative privileges...
    goto UACPrompt
    ) else ( goto gotAdmin )
    :UACPrompt
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
    set params = %*:"=""
    echo UAC.ShellExecute "%~s0", "%params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
    "%temp%\getadmin.vbs"
    exit /B
    :gotAdmin
    if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
    
    setlocal ENABLEDELAYEDEXPANSION
    
    
    :RearmIR6
    mode con: cols=62 lines=7
    CLS
    echo ...Rearming :)
    cscript.exe /b %windir%\system32\slmgr.vbs /rearm
    net stop sppsvc >NUL
    ping -n 1 localhost >NUL
    net start sppsvc >NUL
    
    cscript.exe /b %windir%\system32\slmgr.vbs /rearm
    net stop sppsvc >NUL
    ping -n 1 localhost >NUL
    net start sppsvc >NUL
    
    cscript.exe /b %windir%\system32\slmgr.vbs /rearm
    net stop sppsvc >NUL
    ping -n 1 localhost >NUL
    net start sppsvc >NUL
    
    cscript.exe /b %windir%\system32\slmgr.vbs /rearm
    net stop sppsvc >NUL
    ping -n 1 localhost >NUL
    net start sppsvc >NUL
    
    cscript.exe /b %windir%\system32\slmgr.vbs /rearm
    net stop sppsvc >NUL
    ping -n 1 localhost >NUL
    net start sppsvc >NUL
    
    date
    
    net stop sppsvc >NUL
    ping -n 1 localhost >NUL
    net start sppsvc >NUL
    
    slmgr /dlv
    
    ENDLOCAL
    exit
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    Not sure if I am using your check.bat right but I have yet to get it to restore the background or even hint at a way to do so.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Would be good to get more detailed info about what is eactly failing in which scenario (Starter, Home Basic or any of the others)

    There are 3 different ways for Starter, HB and the rest, to backup and restore theme\wallpaper.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,771
    7,713
    210
    Hi,

    HomeBasic seemed to be mostly fine (the Rearm cycles restored the Wallpaper). BUT (you knew it coming?) it doesn't restore the Wallpaper at all when it comes back from WinRE cycle. The reason is that check.bat will restore only if it has to Rearm, and that isn't the case after WinRE.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    Running Home Basic.
    Installed D420/IR6.
    Replaced the check.bat it makes with yours.
    Restarted into WinRE and ran C:IR6
    Restarted to desktop with 5 reams.
    Ran force notifications batch.
    Logged out/In so that I could get black background.
    prompted to reinstall by your check.bat.
    whether I did or didn't reinstall, no wallpaper.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,771
    7,713
    210
    Yes, you ran into the same thing. When doing the reinstallation (WinRE) the wallpaper is not restored. That's because it will do so only if it has to rearm online (30 days are up). But when you return from WinRE you have 5 rearms, 30 days, so no restore.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    I have to run to the store, once I return I will check out the check.bat source code.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    When the backup and restore is running properly after Rearm i will implement the nessessary Restore to installkey.bat to restore after IR6 Reinstall :D.
    I did it once, but that failed on Home Basic and Starter, so will do a new attempt later.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,771
    7,713
    210
    The normal backup/restore seems to work fine on Starter/Homr Basic. The theming stuff on the other SKUs is a different beast.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Found no better way so far. In most cases it is working on my Win 7 Test machines :D.

    Will post new try with restore after RE tomorrow...:tea:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,771
    7,713
    210
    I'll let the VMs live 'till I can test the complete integrated package (D420.bat) since creating the batch workers can go wrong as well.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    #733 s1ave77, Jun 28, 2013
    Last edited by a moderator: Apr 20, 2017
    BTW: As i don´t like the existing tools for bootable usb pen drive creation, i was working on batch version.

    Here it is: diskpart.cmd

    Code:
        @echo off
    title DISKPART by s1ave77
    :: Code by s1ave77
    color 4F
    mode con cols=87 lines=50
    setlocal ENABLEDELAYEDEXPANSION
    
    :Diskpart
        cls
        echo ======================================================================================
        echo:
        echo                                        DISKPART
        echo                                Create bootable Pen Drive
        echo:
        echo ======================================================================================
        echo:
        echo  NOTE: Be shure you´re pointing to correct drive in list, as DISPART asks no further
        echo                                     QUESTIONS!!!!
        echo:
        CHOICE /C CFE /N /M "[C]ontinue [F]ilecopy or [E]xit?:"
        if %errorlevel%==1 goto :furtherPD
        if %errorlevel%==2 goto :furtherPD3
        if %errorlevel%==3 goto :Exit
    :furtherPD
        set type=ntfs
        set label=New Volume
        echo list disk > %temp%\list.txt
        diskpart < %temp%\list.txt
        pause
        if exist "%temp%\list.txt" del /s /q "%temp%\list.txt" >nul
        echo:
        set /p dl=Set Disk Number :^>
        echo:
        echo Default: %type%
        set /p type=Set Disk Format :^>
        echo:
        echo Default: %label%
        set /p label=Set Volume Name :^>
        echo:
        echo Selected volume will be formatted now...!!!
        echo:
        CHOICE /C CE /N /M "[C]ontinue or [E]xit?:"
        if %errorlevel%==1 goto :furtherPD2
        if %errorlevel%==2 goto :Exit
    :furtherPD2
        echo select disk %dl% > %temp%\diskpart.txt
        echo clean >> %temp%\diskpart.txt
        echo create partition primary >> %temp%\diskpart.txt
        echo select partition 1 >> %temp%\diskpart.txt
        echo active >> %temp%\diskpart.txt
        echo format fs=%type% label="%label%" quick >> %temp%\diskpart.txt
        echo assign >> %temp%\diskpart.txt
        cls
        echo ======================================================================================
        echo:
        echo                                        DISKPART
        echo                                  Processing the Task...
        echo:
        echo ======================================================================================
        echo:
        diskpart < %temp%\diskpart.txt
        echo:
        pause
        if exist "%temp%\diskpart.txt" del /s /q "%temp%\diskpart.txt" >nul
        echo:
        echo You can copy now files to new volume.
        echo:
        CHOICE /C CE /N /M "[C]opy or [E]xit?:"
        if %errorlevel%==1 goto :furtherPD3
        if %errorlevel%==2 goto :Exit
    :furtherPD3
        cls
        echo ======================================================================================
        echo:
        echo                                        FILECOPY
        echo                                Copy Files to Pen Drive
        echo:
        echo ======================================================================================
        echo:
        echo Enter path as X:
        set /p source=Set Source Folder :^>
        echo:
        echo Enter path as X:
        set /p target=Set Target Folder :^>
        echo:
        xcopy "%source%\*.*" /s "%target%" /Y 
        echo:
        CHOICE /C AE /N /M "[A]gain or [E]xit?:"
        if %errorlevel%==1 goto :furtherPD3
        if %errorlevel%==2 goto :Exit
        
    :Exit
    ENDLOCAL
    exit
    
    Could be used in Dualitys ISO part :smartass:.

    Download: View attachment 22490
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    Okay so what was different about check.bat ver 3 test for?

    What am I suppose to be doing with it?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,771
    7,713
    210
    Since you used the testscript you tested the 'big' cycle only (the WinRE one). Restoring works for the simple Rearm that doesn't need WinRE.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    I do not follow you :(

    As far as I can tell. The check.bat test ver 3 works that same as the one that D420 makes.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,771
    7,713
    210
    #737 Carlos Detweiller, Jun 28, 2013
    Last edited by a moderator: Apr 20, 2017
    That script contains:
    Code:
    echo ...Rearming :)
    cscript.exe /b %windir%\system32\slmgr.vbs /rearm
    net stop sppsvc >NUL
    ping -n 1 localhost >NUL
    net start sppsvc >NUL
    
    cscript.exe /b %windir%\system32\slmgr.vbs /rearm
    net stop sppsvc >NUL
    ping -n 1 localhost >NUL
    net start sppsvc >NUL
    
    cscript.exe /b %windir%\system32\slmgr.vbs /rearm
    net stop sppsvc >NUL
    ping -n 1 localhost >NUL
    net start sppsvc >NUL
    
    cscript.exe /b %windir%\system32\slmgr.vbs /rearm
    net stop sppsvc >NUL
    ping -n 1 localhost >NUL
    net start sppsvc >NUL
    
    cscript.exe /b %windir%\system32\slmgr.vbs /rearm
    net stop sppsvc >NUL
    ping -n 1 localhost >NUL
    net start sppsvc >NUL
    It wastes all Rearms at once. I did it one after the other.
    1. Time forward 30 days -> black.
    2. Logoff/Logon to trigger the Check.bat task -> Restore works, needs further logoff.

    Restoring does not yet work if rebooting to the Repair environment.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    #738 Humphrey, Jun 28, 2013
    Last edited by a moderator: Apr 20, 2017
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,771
    7,713
    210
    If you use the check.bat only and manually forward time, the restore works (comes directly after rearm). However, that one time you need to rerun ir6.bat it doesn't (because check.bat only restores after rearming and after returning from WinRE rearming isn't necessary).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. martytheman

    martytheman MDL Novice

    Oct 22, 2012
    3
    0
    0
    Hey all, I know this is kind of the wrong place for this, but since the trilogy thread is shut down, I figured I'd post it here.

    Does anyone have a direct download link for cs5.5, and cs6?

    and also, timesurfer are you gonna make anything for cs6 kinda like trilogy worked for 5.5?
    I'd be happy sticking with 5.5 but the download I have for it seems to have gotten all screwed up, so if this pc goes TU then I'm stuck :(