tis-enable-srp-win11 icon

Enable SRP Windows 11 22H2

Paquet d’installation silencieuse pour Enable SRP Windows 11 22H2

1-0

  • package: tis-enable-srp-win11
  • name: Enable SRP Windows 11 22H2
  • version: 1-0
  • categories: Security
  • maintainer: WAPT Team,Tranquil IT,Bertrand LEMOIGNE
  • target_os: windows
  • architecture: all
  • signature_date:
  • size: 5.10 Ko

package           : tis-enable-srp-win11
version           : 1-0
architecture      : all
section           : base
priority          : optional
name              : Enable SRP Windows 11 22H2
categories        : Security
maintainer        : WAPT Team,Tranquil IT,Bertrand LEMOIGNE
description       : Enables SRP on Windows 11 22H2
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.1
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 99f89eb2-79d1-4959-be9c-f335a5841d62
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 9420721210f5d9c50c9e35c9fdbf0a088b30e165df8311c5f2176ce60e122475
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-05-05T15:14:37.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : j5kfdN/DmVd5PxJ4zM/Oylq1prtqIsSKFDgSwMAJsGUMhGYsPBo9RAEVfLt4SExpSuJ2uI+U3erXMFCEx2BY4SbBb7y0xF4XZQXY+z7+lCPdkXsUbuDU6EkStsbjBbat2OOE+Jl5pk6dWoJWlv+r4YuS/Q5HIbs1gYvCBZK2YTk1a3MGxKIH3opEighvGhVYw/cKOJVwSAnmLCJshYoEYQp/oOpdg4mtxE0Er0dnFWUTE+XVoM9StGZEi+pSyVHXtLOzR+Tdo1h4VDCBxKMqV+9Bo6kRLHRflBs+7R64PnHdVcROI1aBwn1wsA70aO/bSkbmlfYxf7NvMsuKtRq2tQ==

# -*- coding: utf-8 -*-
from setuphelpers import *

def install():
    #re-enables SRP on Windows 11 22H2 and later
    print('Enabling SRP')
    registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Control\Srp\Gp','RuleCount',0,type=REG_DWORD)
    if reg_value_exists(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Control\Srp\Gp','LastWriteTime'):
        registry_delete(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Control\Srp\Gp','LastWriteTime')
    else:
        print("Key HKLM\SYSTEM\CurrentControlSet\Control\Srp\Gp\LastWriteTime Seems to be already deleted. SKIP.")

def uninstall():
    #disables SRP
    print('Disabling SRP')
    registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Control\Srp\Gp','RuleCount',2,type=REG_DWORD)
    
    #We can uncomment the following line when REG_QWORD is added to setuphelpers
    #registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Control\Srp\Gp','LastWriteTime',1,type=REG_QWORD)

def audit():
    if registry_readstring(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Control\Srp\Gp','RuleCount') == '0' or reg_value_exists(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Control\Srp\Gp','RuleCount') is False:
        print("Software Restriction Policies are enabled")
        return "OK"
    else:
        print("Software Restriction Policies are not enabled anymore")
        return "ERROR"

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
5770a30ea522784efd27aedade7d9c65ec3ae97c20db12a7373b17a1054e2f90 : WAPT/control
9420721210f5d9c50c9e35c9fdbf0a088b30e165df8311c5f2176ce60e122475 : WAPT/icon.png
a3bbfc5b37683025484d529b4d63e7fa97fa80c9a4d25faf2d7fa1598e615190 : luti.json
00fb406e77ec659b1e6ffa1d4b6ea69afff4333693f869ec3c1db8e4c608ee27 : setup.py