8 lines
347 B
PowerShell
8 lines
347 B
PowerShell
# Remediation Script: Remediate_DeviceGuard.ps1
|
|
|
|
# Enable Device Guard
|
|
$regKey = "HKLM:\SYSTEM\CurrentControlSet\Control\DeviceGuard"
|
|
Set-ItemProperty -Path $regKey -Name "EnableVirtualizationBasedSecurity" -Value 1
|
|
Set-ItemProperty -Path $regKey -Name "RequirePlatformSecurityFeatures" -Value 1
|
|
|
|
Write-Output "Device Guard has been enabled." |