Additional Script Updates
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# Check if tamper protection is enabled
|
||||
$tamperProtection = Get-MpPreference | Select-Object -ExpandProperty DisableTamperProtection
|
||||
|
||||
if ($tamperProtection -eq $false) {
|
||||
Write-Output "Tamper protection is enabled."
|
||||
exit 0
|
||||
} else {
|
||||
Write-Output "Tamper protection is disabled."
|
||||
exit 1
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# Enable tamper protection
|
||||
Set-MpPreference -DisableTamperProtection $false
|
||||
exit 0
|
||||
Reference in New Issue
Block a user