CFW has been reporting this powershell script to me for a few days now:
-ExecutionPolicy Restricted -Command
$Res = 0
[UInt64]$MinDiskSpaceThreshold = 20 * 1024 * 1024 * 1024
try {
$SystemDrive = (Get-CimInstance Win32_OperatingSystem).SystemDrive
I don’t understand what it is, but from what I understand, I think what’s putting CFW on alert is the string -ExecutionPolicy Restricted -Command that would like to bypass the restriction set on Powershell.
In fact, trying running the command:
powershell -ExecutionPolicy Restricted -Command "get-process"
Which I found in a site talking about Poweshell’s restrictive policy, I saw that it immediately triggers CFW containment.
So what should I do, either approve the execution of this script, or put it on blocked? For the time being I just ignored it, but without creating a rule for it.