diff options
| author | WindowsAddict | 2024-07-19 21:43:45 +0000 |
|---|---|---|
| committer | WindowsAddict | 2024-07-19 21:43:45 +0000 |
| commit | 5728ba26868a617b0fb8a7fb94c4821965544413 (patch) | |
| tree | ab3a88337ec9ac3e45eb29f60f40f16968cddab8 /MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd | |
| parent | ddccc4025ff648abb2046a55de0d2bfd19f065cf (diff) | |
| download | Microsoft-Activation-Scripts-5728ba26868a617b0fb8a7fb94c4821965544413.zip | |
Add check for NT SERVICE\sppsvc
Diffstat (limited to 'MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd')
| -rw-r--r-- | MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd index 71a4e7f..da8b967 100644 --- a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd +++ b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd @@ -1891,7 +1891,7 @@ if not defined permerror ( reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion" %nul% && (
set "pol=HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Policies"
reg query "!pol!" %nul% || reg add "!pol!" %nul%
-%psc% "$acl = (Get-Acl 'Registry::!pol!' | fl | Out-String); if (-not ($acl -match 'NT AUTHORITY\\NETWORK SERVICE Allow FullControl') -or ($acl -match 'NT AUTHORITY\\NETWORK SERVICE Deny')) {Exit 3}" %nul%
+%psc% "$acl = (Get-Acl 'Registry::!pol!' | fl | Out-String); if (-not ($acl -match 'NT AUTHORITY\\NETWORK SERVICE Allow FullControl' -or $acl -match 'NT SERVICE\\sppsvc Allow FullControl') -or ($acl -match 'Deny')) {Exit 3}" %nul%
if !errorlevel!==3 set "permerror=Error Found In S-1-5-20 SPP"
)
)
|
