Error compiling for board DOIT ESP32 DEVKIT V1

When i'm trying to compile for board DOIT ESP32 DEVKIT V1, it's Error compiling "fork/exec C:\Windows\system32\cmd.exe: Operation did not complete successfully because the file contains a virus or potentially unwanted software.". Anyone can help to fix my problem?. I'm using
windows 10 pro and Arduino 1.18.19
Arduino: 1.8.19 (Windows 10), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 921600, None, Disabled"

fork/exec C:\Windows\system32\cmd.exe: Operation did not complete successfully because the file contains a virus or potentially unwanted software.
"
Error compiling for board DOIT ESP32 DEVKIT V1.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
"
Thanks
Error compiling for board DOIT ESP32 DEVKIT V1.

Hi @hilalbisrie. It appears your antivirus software is causing this error.

It would be useful to know whether it is actually the C:\Windows\system32\cmd.exe file mentioned in the message that is the file under suspicion, or one of the platform's files that are being used through cmd.exe.

C:\Windows\system32\cmd.exe is a fundamental part of the Windows operating system, so if that file is being detected as malware then this either indicates a serious problem with your system or with the antivirus software. False positives from antivirus software are commonplace, but they will typically occur with the files of less common applications. It would be surprising if the antivirus produced a false positive from a component of the Windows operating system since the antivirus software developers should have caught that during beta testing before they made a public release.

But certainly the various tools used to compile and upload Arduino sketches are subject to false positives from various antivirus applications from time to time.

Can you check the logs and quarantine of your antivirus software to see if it will tell you the specific file that was detected as malware?