tis-schedule-force-shutdown-daily
1.1-4
Trigger a force shutdown everyday
1325 downloads
Download
See VirusTotal scan

- package : tis-schedule-force-shutdown-daily
- name : Schedule Daily Force Shutdown
- version : 1.1-4
- categories : System and network
- maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Kenan KILICARSLAN
- editor :
- licence :
- locale :
- target_os : windows
- impacted_process :
- architecture : all
- signature_date : 2020-11-19 11:58
- size : 3.79 Ko
package : tis-schedule-force-shutdown-daily
version : 1.1-4
architecture : all
section : base
priority : optional
name : Schedule Daily Force Shutdown
categories : System and network
maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Kenan KILICARSLAN
description : Trigger a force shutdown everyday
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_os_version :
max_os_version :
min_wapt_version : 1.7
sources :
installed_size :
impacted_process :
description_fr : Lance un arrêt forcé du poste tous les jours
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor :
keywords :
licence :
homepage :
package_uuid : 69a4d229-0981-4b4c-bea5-57e362df82ab
valid_from :
valid_until :
forced_install_on :
changelog :
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : lRdhVvvj28A9OzZgcCWvl3h3MZDSK7F0T42YdD/Dot+DORGRc2e236bLeFoOl2/37QRHH3RR2l1/tdIgiYnUv/AXJvPrlqNF9j7keuYF9wxguDOMX0tyoDbqCSGYNdPiYWAqIU+RiiccRNGeaXuL2whdGNfQHwr09LIMfBzuADn7+4Px0+UiyrSi2zaV8lY8Ec0IAJ7tNfxqRbXtycLeqeINt2JIY58CCFj90R7ErPJRPUUUi7GZyR3NZ0nxle+dIdESmGCHcFFOkI4G8ArVXTJxIqLR7mbayZTAKsb5uBnCHFsICvHykL33UzZtFjHTQRk4U9NQ3GEqDnyJ6lp/kw==
signature_date : 2020-11-19T11:58:48.953716
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,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,signer,signer_fingerprint,signature_date,signed_attributes
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
# Defining variables
task_name = 'ShutdownForceDaily'
start_hour = 20
start_minute = 00
def install():
# Creating the scheduled task
if task_exists(task_name):
delete_task(task_name)
try:
print('Creating the task: %s' % task_name)
create_daily_task(task_name, 'shutdown','/s /f /t 300', start_hour=start_hour, start_minute=start_minute)
except:
print('Unable to create the task: %s' % task_name)
def uninstall():
# Deleting the scheduled task
if task_exists(task_name):
try:
delete_task(task_name)
except:
print('Unable to delete the task: %s' % task_name)
def audit():
if not task_exists(task_name):
print("task %s don't exist, WAPT is installing package to fix that" % task_name)
install()
return "WARNING"
if not enable_task(task_name):
print("task %s is disable, WAPT is going to enable the task" % task_name)
enable_task(task_name)
return "WARNING"
else:
print("task %s exist and is active" % task_name)
return "OK"
def update_package():
# Initializing variables
version = control.version.split('-')[0]
# Incrementing version of the package
control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
control.save_control_to_wapt()
print('Changing package version to: %s in WAPT\\control' % control.version)
bd12a4bb575f0e96c58edf40067de77e2fe01701e3ed04c6b401d05636367633 : setup.py
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
339c31bd7fda683c02f324a6f6a6f0a2ee30ffc0eb273e58a7be47d580cb9dac : WAPT/control