1
0 Comments

I attempted to disable real-time monitoring of Windows Defender by running the command "Set-MpPreference -DisableRealtimeMonitoring $true" in PowerShell as an administrator, but I still couldn’t execute the script “Get-TSLsaSecret.” When I tried to run it, I received the error message: “This script contains malicious content and has been blocked by your antivirus software.

I was able to successfully run the script after manually turning off Windows Defender’s real-time protection in Windows Settings, but it is unclear why the command did not work as intended.

Askify Moderator Edited question May 4, 2023