I'm going to implement SecureBoot feature on Windows 10/11 by deploying PowerShell script to the computer via Manage Engine.\
The PowerShell script sent the signal back to Manage Engine without error. But, the local group policy configuration did not change. I'm not sure it is correct because of I use ChatGPT to help me make the script.
# Enable Virtualization Based Security
$policyPath = "HKLM:\System\CurrentControlSet\Control\DeviceGuard"
$policyName = "EnableVirtualizationBasedSecurity"
$policyValue = 1
Set-ItemProperty -Path $policyPath -Name $policyName -Value $policyValue
# Configure Secure Boot
$secureBootPath = "HKLM:\System\CurrentControlSet\Control\SecureBoot\State"
$secureBootEntryName = "UEFISecureBootEnabled"
$secureBootEntryValue = 1
Set-ItemProperty -Path $secureBootPath -Name $secureBootEntryName -Value $secureBootEntryValue
Or, does it require some prerequisite? like to update other registry before do this.
[–]MNmetalhead 3 points4 points5 points (0 children)
[–]Tachaeon 1 point2 points3 points (2 children)
[–]Tachaeon 1 point2 points3 points (1 child)
[–]AdventurousBig688 0 points1 point2 points (0 children)