tis-disable-autorun
1.1-0
Disables AutoRun and AutoPlay on all kinds of drives
63 downloads
View on


Description
- package : tis-disable-autorun
- version : 1.1-0
- architecture : all
- categories : System and network,Configuration
- maintainer : WAPT Team,Tranquil IT
- description : Disables AutoRun and AutoPlay on all kinds of drives
- locale : all
- target_os : windows
- min_wapt_version :
- sources :
- installed_size :
- impacted_process :
- description_fr :
- description_pl :
- description_de :
- description_es :
- description_pt :
- description_it :
- description_nl :
- description_ru :
- editor :
- licence :
- signature_date : 2021-12-21T16:42:23.402613
- Conflicts :
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
https://support.microsoft.com/en-us/topic/how-to-disable-the-autorun-functionality-in-windows-8e5ff0da-c526-7624-c064-ff82aecfd145
"""
def install():
print("Disable Autorun for all External Devices")
registry_setstring(HKEY_LOCAL_MACHINE, r"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer",'NoDriveTypeAutoRun',255, type=REG_DWORD)
def uninstall():
print("Enable Autorun default mode")
registry_delete(HKEY_LOCAL_MACHINE, r"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer",'NoDriveTypeAutoRun')
def update_package():
pass