wapt-smb1-client/setup.py

37 lines
690 B
Python

# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print("Enable SMB v1")
print('Checking status')
if:
else:
def uninstall():
print('Disable SMB v1')
print('Checking status')
if:
else:
# Disable :
#
# Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol -NoRestart
#
# Enable :
#
# Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol -NoRestart
#
# Status :
#
# Get-WindowsOptionalFeature -Online -FeatureName smb1protocol
#
# https://docs.microsoft.com/fr-fr/windows-server/storage/file-server/troubleshoot/detect-enable-and-disable-smbv1-v2-v3