Commit 3aba8ea
committed
Warn about Smart App Control when applying SRP
Add a Smart App Control (SAC) compatibility check to the generated PowerShell for applying Software Restriction Policies (SRP). The script now reads HKLM:\\SYSTEM\\CurrentControlSet\\Control\\CI\\Policy -> VerifiedAndReputablePolicyState and emits a warning if SAC is in Evaluation (1) or On (2), since SAC can override SRP on Windows 11. This is a non-invasive notification (it still sets the SRP registry keys) and only runs for non-Home systems when the blockExecutables lock is enabled, guiding users to disable SAC if they want SRP to take effect.1 parent c076800 commit 3aba8ea
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
614 | 626 | | |
615 | 627 | | |
616 | 628 | | |
| |||
0 commit comments