reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 5 /f
reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v PromptOnSecureDesktop /t REG_DWORD /d 1 /f
Test
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA
sc query type= service state= all | findstr /i "zapret windivert"
sc queryex type= service state= all
Get-ScheduledTask | ForEach-Object {
$t = $_
try {
$a = ($t.Actions | ForEach-Object { "$($_.Execute) $($_.Arguments)" }) -join " | "
if ($a -match 'AppData|Temp|Downloads|powershell|cmd.exe|wscript|cscript|mshta|rundll32|\.bat|\.vbs|\.js') {
[PSCustomObject]@{
Task = $t.TaskPath + $t.TaskName
Action = $a
}
}
} catch {}
} | Format-List