Техническая информация
- '%WINDIR%\syswow64\windowspowershell\v1.0\powershell.exe' -ExecutionPolicy Bypass -WindowStyle Hidden -NonInteractive -Command "Add-MpPreference -ExclusionPath '<Текущая директория>'"
- '%WINDIR%\syswow64\windowspowershell\v1.0\powershell.exe' -ExecutionPolicy Bypass -WindowStyle Hidden -NonInteractive -Command "$p = Get-MpPreference; if ($p.ExclusionPath -contains '<Текущая директория>') { exit 0 } else { exit 1 }" (со скрытым окном)
- '%WINDIR%\syswow64\windowspowershell\v1.0\powershell.exe' -ExecutionPolicy Bypass -WindowStyle Hidden -NonInteractive -Command "Add-MpPreference -ExclusionPath '<Текущая директория>'" (со скрытым окном)