Jump to content

Kaspersky won't let me run my batch files anymore


Recommended Posts

HI,

The latest version of Kaspersky is not letting me run the batch files I always used.

I've had Kaspersky for over 10 years, and this never happened before.

 

Running the batch files results in the command line window output "Access Denied..."
Pausing Kaspersky's protection will let the batch file run with no problem.

It's worth noting that Kaspersky itself doesn't pop up with any window, prompt or anything else.

 

I'm running on windows 10 Professional x64 build 19045

Kaspersky version 21.17.7.539

 

Example batch files:

 

1. Running a local minecraft server:

"C:\Program Files\Java\jdk-21\bin\java" -Xmx1024M -Xms1024M -jar minecraft_server.1.20.4.jar

 

2. A script why shows my current public IP:

@ECHO OFF
 	ECHO:
    SETLOCAL
		FOR /F "tokens=* USEBACKQ" %%F IN (`curl -s http://api.ipify.org`) DO (
			SET CURRENT_IP=%%F
		)
		ECHO Server address: %CURRENT_IP%
	ENDLOCAL
	ECHO:
	pause
EXIT /B 0

 

How do I get Kaspersky to stop blocking the correct execution of the batch files?

 

Link to comment
Share on other sites

Welcome to Kaspersky Community.

 

No warnings of blocking from Kaspersky?

 

Check Intrusion Prevention -> Manage Applications, if the bat files are in some restriction group, if so, then move manually to Trusted.

  • Like 2
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...