Skip to content

Commit

Permalink
removed unnecessary mp-preference (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku authored Nov 4, 2021
1 parent 55e8997 commit 4f29877
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions WELA.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,4 @@ if ($ruleStack.Count -ne 0) {
}

Remove-Variable ruleStack
$isAdmin = Check-Administrator
if ( $isAdmin -eq $true -and ($UseDetectRules -eq "2" -or $UseDetectRules.toupper() -eq "all")) {
Set-MpPreference -DisableRealTimeMonitoring $false;
}
Set-ExecutionPolicy $exectionpolicy -scope Process

0 comments on commit 4f29877

Please sign in to comment.