tis-enable-smb1 icon

Enable SMBv1

Paquet d’installation silencieuse pour Enable SMBv1

30.0-2

  • package: tis-enable-smb1
  • name: Enable SMBv1
  • version: 30.0-2
  • categories: Security,System and network
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Hubert TOUVET,Jordan ARNAUD
  • licence: wapt_public
  • locale: all
  • target_os: windows
  • architecture: all
  • signature_date:
  • size: 5.94 Ko

package           : tis-enable-smb1
version           : 30.0-2
architecture      : all
section           : base
priority          : standard
name              : Enable SMBv1
categories        : Security,System and network
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Hubert TOUVET,Jordan ARNAUD
description       : Enable SMBv1 on Windows
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://learn.microsoft.com/fr-fr/windows-server/storage/file-server/troubleshoot/detect-enable-and-disable-smbv1-v2-v3?tabs=server
installed_size    : 
impacted_process  : 
description_fr    : Enable SMBv1 on Windows
description_pl    : Włącz SMBv1 w systemie Windows
description_de    : Enable SMBv1 on Windows
description_es    : Activar SMBv1 en Windows
description_pt    : Ativar SMBv1 no Windows
description_it    : Abilitare SMBv1 su Windows
description_nl    : SMBv1 inschakelen op Windows
description_ru    : Включите SMBv1 в Windows
audit_schedule    : 
editor            : 
keywords          : 
licence           : wapt_public
homepage          : 
package_uuid      : 5d61e6a0-fd32-4284-91a1-b6dcfab7977c
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 7891f1ca19ac8a9e41cb2963c0833bb3424a1dcc3f89e6ae484b1841a67063b2
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : cyMD6VemtzCWaGwKP2oz7g1zn1lkNh1acQu4hdFtG0swEFCEpI4QPOQLpjfpnotpGc3eXHc9CSOhPmv79RZy3lnx9csG/C2HdIvRW/CtX9w0TDpPn3zb7NikcGB8SeoBKABE4rSYMNzGb4fP2QbIuVeUcP33+p6kw0fozSnicnHug6RqoevF+ouVFWhmcvsIiBs0wBjasrV16dDrAa2MBVFAcK7+mOji576f1JzJ+QzqXL7bJe/+QV8rq8TLJZ3AwQR68DtdLDNQx0qrHv1jIBb+sEYp+q+3aKj8HlkQLIjPRGM0DbONM8GP4G3tSZG0FwqAo5AwpJ/HpjzFFb0n4g==
signature_date    : 2024-03-16T16:00:27.316272
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

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

# to activate smb1 use this command in powershell
# Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol


def install():
    try:
        # check smb1 status
        result = subprocess.run(['powershell', 'Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol | findstr "State"'], capture_output=True,text=True, check=True)
        output = result.stdout.strip().split(": ")[1]

        if "disabled" in output.lower():
            print("SMB1 is already disabled")
        else:
            run_powershell(['powershell', 'Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol'], check=True)
            print("SMB1 has been disabled ")
    except subprocess.CalledProcessError:
        print("unexpected error") 

da56e0cbe7c08a6ac4cdb8cd78cf130142326851a9ed4cdaa9e8d79e95f4c7fe : setup.py
7891f1ca19ac8a9e41cb2963c0833bb3424a1dcc3f89e6ae484b1841a67063b2 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
1e232ab16746233407e574d7d354b33e82b2f5b072faade0c7820005c8b52d67 : luti.json
8ca0bcc691ddad23f9674e6b9887cf69e6ac2a8c2254383c9a12000bed0d9036 : WAPT/control