diff options
| author | Lyssa | 2026-01-26 11:40:36 +0000 |
|---|---|---|
| committer | Lyssa | 2026-01-26 11:40:36 +0000 |
| commit | a93b4b3f4bd8f13ad2be29ea9c2eb1ec4a29bd81 (patch) | |
| tree | e79f5be6f05ade729caf5151975c33d375855bcf /MAS | |
| parent | a353813814d98a14c57b1848062015b116ec78bb (diff) | |
| download | Microsoft-Activation-Scripts-a93b4b3f4bd8f13ad2be29ea9c2eb1ec4a29bd81.zip | |
Add warnings for Smart App Control
Diffstat (limited to 'MAS')
| -rw-r--r-- | MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd index 35122b7..551452d 100644 --- a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd +++ b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd @@ -601,6 +601,26 @@ reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2 ::========================================================================================================================================
+:: Check Smart App Control
+
+set "sacstate="
+if %winbuild% GEQ 22621 (
+for /f "tokens=3" %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\CI\Policy" /v VerifiedAndReputablePolicyState %nul6%') do set "sacstate=%%a"
+)
+if defined sacstate (
+if "%sacstate%"=="0x1" (
+call :dk_color %Gray% "Checking Smart App Control State [Enabled]"
+call :dk_color %Blue% "Smart App Control may prevent you from opening Office after Ohook activation."
+call :dk_color %Blue% "You will need to disable it from the Windows Defender settings if it does."
+) else if "%sacstate%"=="0x2" (
+call :dk_color %Gray% "Checking Smart App Control State [Evaluation]"
+call :dk_color %Blue% "Smart App Control may prevent you from opening Office in the future if it enables itself after the evaluation period."
+call :dk_color %Blue% "It is recommended that you disable it from the Windows Defender settings."
+)
+)
+
+::========================================================================================================================================
+
:: Process Office 15.0 C2R
if not defined o15c2r goto :starto16c2r
|
