Delete the unnecessary files from the C:\IORRT folder and try again. I noticed that you have changed the original script name to IORRT which is also the name of the generated script for task.
I even put the IORRT.bat file just in c:\ and it still put's both bat files in the IORRT folder...lol Code: @echo off @color 9A title IORRT :MAINMENU mode con: cols=45 lines=12 CLS echo. echo. echo. echo. InfiniteOfficeRestoreRearmTask (IORRT) echo. echo. An Office Restore Rearm Solution echo. echo. A. Install echo. B. Uninstall echo. C. Restore/Rearm echo. D. Status echo. E. Exit echo. :CHOOSEACTION set /p userinp= ^ Make your selection: set userinp=%userinp:~0,1% if /i "%userinp%"=="A" goto Install if /i "%userinp%"=="B" goto Uninstall if /i "%userinp%"=="C" goto Restore/Rearm if /i "%userinp%"=="D" goto Status if /i "%userinp%"=="E" goto Exit echo. Try Again.... GOTO CHOOSEACTION :Install CLS mode con: cols=64 lines=21 title IORRT schtasks /Query /TN "IORRT" 1>nul 2>nul IF ERRORLEVEL 1 ( echo Installing IORRT ) ELSE ( echo IORRT has already been installed! echo. echo Press any key to return to the main menu PAUSE 1>nul GOTO MAINMENU ) mkdir "%SystemDrive%\IORRT" net stop osppsvc xcopy /cheriky "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" "C:\IORRT" reg save "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" C:\IORRT\Backup.hiv /y net start osppsvc SET file=%SystemDrive%\IORRT\IORRT.bat IF EXIST %file% attrib -h %file% echo @echo off >%file% echo net stop osppsvc >>%file% echo xcopy /cheriky "C:\IORRT" "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" >>%file% echo REG DELETE HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f >>%file% echo REG ADD HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f >>%file% echo reg restore "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" C:\IORRT\Backup.hiv >>%file% echo net start osppsvc >>%file% echo IF Exist "%COMMONPROGRAMFILES%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ( >>%file% echo "%COMMONPROGRAMFILES%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" >>%file% echo ) ELSE ( "%COMMONPROGRAMFILES(X86)%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" >>%file% echo ) >>%file% IF Exist "C:\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ( "C:\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ) ELSE ( "\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ) schtasks /create /tn "IORRT" /tr '"C:\IORRT\IORRT.bat"' /sc daily /mo 30 /st 13:00:00 /ru "" /f echo. cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus schtasks /query | FINDSTR /I "IORRT" IF ERRORLEVEL 1 echo IORRT is not yet Installed echo.Press any key to return to the main menu pause > nul GOTO MAINMENU ) :Uninstall title IORRT schtasks /Query /TN "IORRT" 0>nul 1>nul IF '%ERRORLEVEL%' EQU '0' ( echo Installing IORRT ) ELSE ( echo IORRT is already uninstalled echo. echo Press any key to return to the main menu PAUSE 1>nul GOTO MAINMENU ) net stop osppsvc xcopy /cheriky "C:\IORRT" "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" REG DELETE HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f REG ADD HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f reg restore "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" C:\IORRT\Backup.hiv net start osppsvc SET file=%SystemDrive%\IORRT IF EXIST %file% attrib -h %file% RD /S /Q %file% schtasks /delete /tn "IORRT" /f cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus echo. echo.Press any key to return to the main menu pause > nul GOTO MAINMENU ) :Restore/Rearm title IORRT schtasks /Query /TN "IORRT" 0>nul 1>nul IF '%ERRORLEVEL%' EQU '0' ( echo Installing IORRT ) ELSE ( echo Install IORRT before you restore/rearm echo. echo Press any key to return to the main menu PAUSE 1>nul GOTO MAINMENU ) net stop osppsvc xcopy /cheriky "C:\IORRT" "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" REG DELETE HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f REG ADD HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f reg restore "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" C:\IORRT\Backup.hiv net start osppsvc IF Exist "C:\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ( "C:\Program Files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ) ELSE ( "\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.exe" ) cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus echo.Press any key to return to the main menu pause > nul GOTO MAINMENU ) :Status mode con: cols=64 lines=21 title IORRT cscript "%PROGRAMFILES%\Microsoft Office\OFFICE14\OSPP.VBS" /dstatus schtasks /query | FINDSTR /I "IORRT" IF ERRORLEVEL 1 echo IORRTT is not yet Installed echo. echo.Press any key to return to the main menu pause > nul GOTO MAINMENU ) :Exit
Check both "C:\IORRT" and "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" for any file that shouldn't be there and delete it.
I just copied that from the batch file. It is C:\Program files\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform
I found an IOR folder deleted it and it still comes up with extra bat. I put my IORRT back way it was if you look up I will restart my comp and see if it changes
Sorry, I think you got the wrong folder. It is actually C:\ProgramData\Microsoft\OfficeSoftwareProtectionPlatform
Yea there was everything in there so I deleted it. Will try but somehow bricked my office. brb Thanks
Maybe you could call it "AbsoluteOfficeRearmTaskAgent". That would abbreviate to "AORTA", the main artery from the heart -- or in this case, Office 2010
...lol If I can get passed the notification so a rearm is possible initially or after repair then maybe I will consider it But you gotta put a restore in the title since the restore is a big part of office rearming. Remember this is very different than IR4
Hey Cody what makes initial and repaired notification unable to be rearmed? If we go past grace and get notification then we can rearm. Any ideas since we last brainstormed on this...lol Just keep on getting reminded in reading your thread and other KMS threads how useful a rearm concept could be and why I started this thread in the first place...lol
What happens if OSPPSVC when activated is to replace OSPPSVC when in initial and repaired notification. Does the tampered thing get triggered... So can OSPPSVC be pasted over another OSPPSVC is what I'm saying. What would happen if we tried cody?