Détails du package smp-preshutdowntimeout_51_all.wapt
retour Revenir à la liste des packages

smp-preshutdowntimeout

ATTENTION CE DÉPÔT n'est plus compatible 1.3 vous devez migrer en 1.5.1.21 !

Fichier control :

package           : smp-preshutdowntimeout
version           : 51
architecture      : all
section           : base
priority          : optional
maintainer        : Lesfourmisduweb
description       : Modify time PreshutdownTimeout
depends           : 
conflicts         : 
maturity          : 
locale            : 
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : 
installed_size    : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 8da83ebdac1a25e820b186510d049f47407b11835b0664fdc5bacd3595b1671d
signature         : awhLVVjSdgimUIOmnZTSwl5XtQDX5pHNKdM63lRqlYlH5uwPa7iw1FHTxHPhEN6+np1taCLUCJnN3CXQOvrQb6l2UjG/LoKMorX1Wz+js9sRABpU75ekb/cCAgtl9ucDnW/93XZyUxj80NhKcJIR1lMbP9HwCe7VX05BFKAXU+hNcd8XB/MPRyCFCygCNr3zOfKOTmreCUlNqn/YZwOv6U4rtedlt1W8olcjlPGdJAxFOEJfoH38kdazDYX+czW2tMHXhzYsGkAJEGhzZ7emOpIKYCXi6s07l1f80rZJvMV7XoWQxRzDFx1EHB8lflfH+Fujee+HncUmkFYvzWXkUg==
signature_date    : 20171122-013710
signed_attributes : package,version,architecture,section,priority,maintainer,description,depends,conflicts,maturity,locale,min_os_version,max_os_version,min_wapt_version,sources,installed_size,signer,signer_fingerprint,signature_date,signed_attributes






Fichier setup.py :

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

uninstallkey = []

def install():

#Choix de la Valeur

# Valeur =  0xffffffff = 4294967295 ms = 49 jour    VALEUR MAX
# Valeur =  0x1b7740   =  1800000 ms = 30 minutes
# Valeur =  0x2932e0   =  2700000 ms = 45 minutes
# Valeur =  0x36ee80   =  3600000 ms = 60 minutes = 1h
# Valeur =  0x44aa20   =  4500000 ms = 75 minutes = 1h15
# Valeur =  0x5265c0   =  5400000 ms = 90 minutes = 1h30
# Valeur =  0x6ddd00   =  7200000 ms = 120 minutes = 2H
# Valeur =  0xa4cb80   =  10800000 ms = 180 minutes = 3H

    valuepreshutdowntimeout = 0xa4cb80


    print('Modify PreshutdownTimeout Windows')
    registry_set(HKEY_LOCAL_MACHINE, r'SYSTEM/CurrentControlSet/services/gpsvc','PreshutdownTimeout',valuepreshutdowntimeout,type=REG_DWORD)

    print('Modify MaxGPOScriptWait Windows')
    registry_set(HKEY_LOCAL_MACHINE, r'SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/System','MaxGPOScriptWait',180,type=REG_DWORD)

    print('Modify HideShutdownScripts Windows')
    registry_set(HKEY_LOCAL_MACHINE, r'SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/System','HideShutdownScripts',0,type=REG_DWORD)

    print('Modify max_gpo_script_wait')
    inifile_writestring(WAPT.config_filename,'global','max_gpo_script_wait',180)

    print('Modify Preshutdowntimeout')
    inifile_writestring(WAPT.config_filename,'global','pre_shutdown_timeout',180)