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.
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.
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.
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
One post above yours. You have borked install! Also make sure that for KAV, you do delete both stor_AVP.bin stor_kav.bin
Could be that KIS 2020 Patch L, released august 3, 2020 caused the reset srcipt is not working anymore.
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.
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
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