[TIP]Kaspersky Products Trial Reset KAV/KIS/PURE 2013-2014

Discussion in 'Application Software' started by CHEF-KOCH, Oct 13, 2013.

  1. Lurkerino

    Lurkerino MDL Novice

    Mar 20, 2016
    44
    6
    0
    Should I add this in the script? What's considered "pause protection"?
     
  2. LostED

    LostED SVF Patch Lover

    Jul 30, 2009
    7,155
    21,099
    240
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hackprohack

    hackprohack MDL Novice

    Apr 1, 2020
    27
    3
    0
    will the script reset any configurations made?
     
  4. sebus

    sebus MDL Guru

    Jul 23, 2008
    6,356
    2,026
    210
    You can use any time you want. If you have that many problems, did you consider just buying it?
     
  5. Lurkerino

    Lurkerino MDL Novice

    Mar 20, 2016
    44
    6
    0
    I think I figured out why it wasn't working for me, I was running a 2019 KIS upgraded into the 2020 version and as I said it didn't work (probably I should have used the first script instead) now after a format and a clean installation of the latest Kaspersky everything works fine.

    I don't think so everything looks the same for me, custom rules, exceptions, settings, etc.
     
  6. chaython

    chaython MDL Novice

    Oct 2, 2011
    32
    10
    0
  7. LostED

    LostED SVF Patch Lover

    Jul 30, 2009
    7,155
    21,099
    240
    #168 LostED, Jul 25, 2020
    Last edited: Jul 25, 2020
    TR @ #144 still working on kis 21.1.15.500
    Code:
    replace AVP20.0 with AVP21.1
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Rootz

    Rootz MDL Novice

    Apr 8, 2008
    18
    3
    0
    Any chance to add on script to self-defence off instead to do manually?
     
  9. chaython

    chaython MDL Novice

    Oct 2, 2011
    32
    10
    0
    #170 chaython, Aug 13, 2020
    Last edited: Aug 13, 2020
    As a security feature, I believe it requires the GUI. [So a virus can't just change a file and take over Kaspersky]
    There is a key in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\KasperskyLab\AVP20.0\settings EnableSelfProtection
    But I don't think you can disable it without disabling in GUI, regedit gices permission errors.
     
  10. Lurkerino

    Lurkerino MDL Novice

    Mar 20, 2016
    44
    6
    0
    #171 Lurkerino, Aug 15, 2020
    Last edited: Aug 15, 2020
    I have a new problem now my license expired before I remembered to use the script and now the option for the free 30 days doesn't show up anymore after I use it, is there something I can do to fix this?

    EDIT: I uninstalled KIS with Revo and used the script after it just to be sure and it's working again now on a new installation.
     
  11. falcoman33

    falcoman33 MDL Novice

    Mar 21, 2019
    2
    0
    0
    Hello. First sorry for my bad english. I try to manual reset using the bat file presented bellow. All works, but after reboot, kaspersky (AVP20) tells me that the license file is missing and i doesn t have the button activate trial.

    Can some one tell me what is wrong?

    i prefer doing manual than using one soft..

    Thanks you
     
  12. sebus

    sebus MDL Guru

    Jul 23, 2008
    6,356
    2,026
    210
    #173 sebus, Aug 24, 2020
    Last edited: Sep 3, 2020
    One post above yours. You have borked install!

    Also make sure that for KAV, you do delete both
    stor_AVP.bin
    stor_kav.bin
     
  13. Jans

    Jans MDL Novice

    Oct 17, 2009
    20
    2
    0
    Could be that KIS 2020 Patch L, released august 3, 2020 caused the reset srcipt is not working anymore.
     
  14. 3zero3

    3zero3 MDL Senior Member

    Apr 26, 2012
    421
    685
    10
    And seems to me, there are no working 45-90 trial keys anymore, too.
     
  15. falcoman33

    falcoman33 MDL Novice

    Mar 21, 2019
    2
    0
    0
    so no one doesn t know what is the problem. i m only interested in reset trial function

    thanks
     
  16. sebus

    sebus MDL Guru

    Jul 23, 2008
    6,356
    2,026
    210
    #177 sebus, Sep 3, 2020
    Last edited: Sep 3, 2020
    ==REMOVED==
     
  17. toyo

    toyo MDL Senior Member

    Aug 14, 2009
    472
    313
    10
    Gave the script a try in a VM with KIS 21, and it works fine. You'll have to edit it according to whatever version you have installed, and yes, the long trial keys seem no longer functional, you'll have to do with 30 days.
     
  18. alesimula

    alesimula MDL Novice

    Sep 6, 2015
    15
    5
    0
    #179 alesimula, Sep 11, 2020
    Last edited: Sep 11, 2020
    Guys I don't think it's necessary to reboot the PC
    Also I improved the script a bit; this one warns you if self-defense is enabled or Kaspersky is still running, and also restarts Kaspersky after it's done
    Just edit all the "AVP21.1" to your desired version (eg. "AVP20.0")

    Code:
    @echo off
    REM        Disable Kaspersky self protection and terminate Kaspersky before running
    
    NET session 1>NUL 2>NUL || (
        Echo You must run this script as administrator
        CMD /k
    )
    if EXIST "%SYSTEMROOT%\SysWOW64" (
       SET WOW6432=\Wow6432Node
    ) else (
       SET WOW6432=
    )
    
    REG ADD HKLM\SOFTWARE%WOW6432%\KasperskyLab\AVP21.1\settings /v EnableSelfProtection /t REG_DWORD /d 0 /f >nul 2>nul
    if errorlevel 1 (
        echo Self-defense is enabled; disable self-defense, close Kasperky and retry
        CMD /k
    )
    
    DEL /F "C:\ProgramData\Kaspersky Lab\AVP21.1\Data\stor_AVP.bin" >nul 2>nul
    DEL /F "C:\ProgramData\Kaspersky Lab\AVP21.1\Data\stor_kis.bin" >nul 2>nul
    DEL /F "C:\ProgramData\Kaspersky Lab\AVP21.1\Data\cat_engine*" >nul 2>nul
    IF EXIST "C:\ProgramData\Kaspersky Lab\AVP21.1\Data\certdb_*.idx*" (
        DEL /F "C:\ProgramData\Kaspersky Lab\AVP21.1\Data\certdb_*.idx*" >nul 2>nul
        IF EXIST "C:\ProgramData\Kaspersky Lab\AVP21.1\Data\certdb_*.idx*" (
            ECHO Kasperky is still running; close Kasperky and retry
            CMD /k
        )
    )
    <nul (set/p z=) >"C:\ProgramData\Kaspersky Lab\AVP21.1\Data\stor_AVP.bin" >nul 2>nul
    <nul (set/p z=) >"C:\ProgramData\Kaspersky Lab\AVP21.1\Data\stor_kis.bin" >nul 2>nul
    
    REG DELETE HKLM\SOFTWARE%WOW6432%\KasperskyLab\LicStrg /f >nul 2>nul
    REG DELETE HKLM\SOFTWARE\Microsoft\SystemCertificates\SPC\Certificates /f >nul 2>nul
    RD /S /Q "C:\ProgramData\Kaspersky Lab\AVP21.1\Report" >nul 2>nul
    REG DELETE HKLM\SOFTWARE%WOW6432%\KasperskyLab\AVP21.1\Data\LicCache /f >nul 2>nul
    REG DELETE HKLM\SOFTWARE%WOW6432%\KasperskyLab\AVP21.1\Data\LicensingActivationErrorStorageLogic /f >nul 2>nul
    REG ADD HKLM\SOFTWARE%WOW6432%\KasperskyLab\AVP21.1\environment /v ShowActivateTrialOption /t REG_DWORD /d 1 /f >nul 2>nul
    REG ADD HKLM\SOFTWARE%WOW6432%\KasperskyLab\AVP21.1\settings /v Ins_InitMode /t REG_DWORD /d 1 /f >nul 2>nul
    REG ADD HKCU\SOFTWARE\KasperskyLab\AVP21.1 /v LastLicenseNotificationTime /t REG_SZ /d "1800000000" /f >nul 2>nul
    REG ADD HKLM\SOFTWARE%WOW6432%\KasperskyLab\AVP21.1\settings /v EnableSelfProtection /t REG_DWORD /d 1 /f >nul 2>nul
    
    ECHO Done, restarting Kaspersky
    FOR /F "tokens=2* skip=2" %%a in ('REG QUERY HKLM\SOFTWARE\WOW6432Node\KasperskyLab\AVP21.1\environment /V ARKMON_RESTART_PATH') do %%b
    CMD /k
     
  19. alesimula

    alesimula MDL Novice

    Sep 6, 2015
    15
    5
    0
    #180 alesimula, Sep 13, 2020
    Last edited: Oct 15, 2020
    Ulterior improvement upon the previous script, this one looks for your installed version of Kaspersky

    Code:
    @echo off
    REM        Disable Kaspersky self protection and terminate Kaspersky before running
    
    NET session 1>NUL 2>NUL || (
        Echo You must run this script as administrator
        CMD /k
    )
    
    REM        Looking for one or more Kaspersky installations
    set i=0
    setlocal EnableDelayedExpansion
    FOR /F %%a in ('REG QUERY HKLM\SOFTWARE\WOW6432Node\KasperskyLab\Binaries ^| findstr /R [\\][A-Z][A-Z]*[0-9][\.0-9]*$') do (
        IF EXIST "C:\ProgramData\Kaspersky Lab\%%~nxa" (
            set options[!i!]=%%~nxa
            set /A i+=1
        )
    )
    
    if %i% == 0 (
        echo Kaspersky installation not found
        CMD /k
    )
    
    if %i% == 1 (
        set op=1
        GOTO success
    )
    
    set /A last=%i%-1
    FOR /L %%n IN (0, 1, %last%) DO (
        set /A num=%%n+1
        echo !num!^) !options[%%n]!
    )
    
    set /p op=Choose version:
    set op=%op: =%
    :choice
    if %op% GTR %i% GOTO fail
    if %op% LSS 1 GOTO fail
    GOTO success
    
    :fail
    set /p op=Wrong selection, retry:
    set op=%op: =%
    GOTO choice
    
    REM        Kaspersky installation found
    :success
    set /A op-=1
    set KNAME=!options[%op%]!
    
    if EXIST "%SYSTEMROOT%\SysWOW64" (
       SET WOW6432=\Wow6432Node
    ) else (
       SET WOW6432=
    )
    
    REG ADD HKLM\SOFTWARE%WOW6432%\KasperskyLab\%KNAME%\settings /v EnableSelfProtection /t REG_DWORD /d 0 /f >nul 2>nul
    if errorlevel 1 (
        echo Self-defense is enabled; disable self-defense, close Kasperky and retry
        CMD /k
    )
    
    DEL /F "C:\ProgramData\Kaspersky Lab\%KNAME%\Data\stor_AVP.bin" >nul 2>nul
    DEL /F "C:\ProgramData\Kaspersky Lab\%KNAME%\Data\stor_kis.bin" >nul 2>nul
    DEL /F "C:\ProgramData\Kaspersky Lab\%KNAME%\Data\cat_engine*" >nul 2>nul
    IF EXIST "C:\ProgramData\Kaspersky Lab\%KNAME%\Data\certdb_*.idx*" (
        DEL /F "C:\ProgramData\Kaspersky Lab\%KNAME%\Data\certdb_*.idx*" >nul 2>nul
        IF EXIST "C:\ProgramData\Kaspersky Lab\%KNAME%\Data\certdb_*.idx*" (
            ECHO Kasperky is still running; close Kasperky and retry
            CMD /k
        )
    )
    <nul (set/p z=) >"C:\ProgramData\Kaspersky Lab\%KNAME%\Data\stor_AVP.bin" >nul 2>nul
    <nul (set/p z=) >"C:\ProgramData\Kaspersky Lab\%KNAME%\Data\stor_kis.bin" >nul 2>nul
    
    REG DELETE HKLM\SOFTWARE%WOW6432%\KasperskyLab\LicStrg /f >nul 2>nul
    REG DELETE HKLM\SOFTWARE\Microsoft\SystemCertificates\SPC\Certificates /f >nul 2>nul
    RD /S /Q "C:\ProgramData\Kaspersky Lab\%KNAME%\Report" >nul 2>nul
    REG DELETE HKLM\SOFTWARE%WOW6432%\KasperskyLab\%KNAME%\Data\LicCache /f >nul 2>nul
    REG DELETE HKLM\SOFTWARE%WOW6432%\KasperskyLab\%KNAME%\Data\LicensingActivationErrorStorageLogic /f >nul 2>nul
    REG ADD HKLM\SOFTWARE%WOW6432%\KasperskyLab\%KNAME%\environment /v ShowActivateTrialOption /t REG_DWORD /d 1 /f >nul 2>nul
    REG ADD HKLM\SOFTWARE%WOW6432%\KasperskyLab\%KNAME%\settings /v Ins_InitMode /t REG_DWORD /d 1 /f >nul 2>nul
    REG ADD HKCU\SOFTWARE\KasperskyLab\%KNAME% /v LastLicenseNotificationTime /t REG_SZ /d "1800000000" /f >nul 2>nul
    REG ADD HKLM\SOFTWARE%WOW6432%\KasperskyLab\%KNAME%\settings /v EnableSelfProtection /t REG_DWORD /d 1 /f >nul 2>nul
    
    ECHO Done, restarting Kaspersky
    FOR /F "tokens=2* skip=2" %%a in ('REG QUERY HKLM\SOFTWARE%WOW6432%\KasperskyLab\%KNAME%\environment /V ARKMON_RESTART_PATH') do %%b
    CMD /k