PowerShell tried to load a malicious resource detected as Heur.BZC.ZFV.Boxter.341.FEC4D355

Hi, I'm getting the notification: PowerShell tried to load a malicious resource detected as Heur.BZC.ZFV.Boxter.341.FEC4D355 and was blocked. Your device is safe.

When running Visual Studio 2022 powershell console, in the console I get an error:

At line:1 char:1

+ &{Import-Module "C:\Program Files\Microsoft Visual Studio\2022\Commun ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This ****** contains malicious content and has been blocked by your antivirus software.

  + CategoryInfo     : ParserError: (:) [], ParentContainsErrorRecordException

  + FullyQualifiedErrorId : ScriptContainedMaliciousContent


How to find which part is actually causing the issue so i can add it to the exclusions?

Answers