Windows Version: 21H1 (OS Build 19043.1151) [Windows 10 Pro 64-Bit] AV is Windows Defender & brain.exe
Now to my problem:
Since recently I no longer can run my VBS script. error-msg and exclusion
---------------------------
Windows Script Host
---------------------------
Script: C:\_Operations\Aebian\BorderlessGaming\BorderlessGaming.vbs
Line: 3
Char: 1
Error: This script contains malicious content and has been blocked by your antivirus software.: 'Run'
Code: 800A802D
Source: Microsoft VBScript runtime error
---------------------------
OK
---------------------------
The script worked flawlessly in the past without issues. Content of the script is the following:
Dim WinScriptHost
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "C:\_Operations\Aebian\BorderlessGaming\BorderlessGaming.bat" & Chr(34), 0
Set WinScriptHost = Nothing
This then runs the actual script. I use a VBS because otherwise I would always have a CMD window left open I would have to manually close. The BAT file looks like this:
@echo off
:loop
Start /MIN "" "C:\Programs\Borderless Gaming\BorderlessGaming.exe"
timeout /t 1800 >nul
taskkill /F /IM "BorderlessGaming.exe" >nul
goto loop
In my exclusion I have the whole folder and also the VBS file directly (as seen in the screenshot above). Is there anything else I'm mising? I wonder why this is a problem now but wasn't back then three days ago.
Any help greatly appreciated, thanks.