Take in consideration SMB 1.0/CIFS Automatic Removal

This commit is contained in:
Heuze Florent 2021-01-19 18:33:15 +01:00
parent 5132a31550
commit e6a563f585
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,5 @@
package : fws-smb1-client
version : 3
version : 4
architecture : all
section : base
priority : optional
@ -31,13 +31,13 @@ editor :
keywords :
licence :
homepage : https://docs.microsoft.com/fr-fr/windows-server/storage/file-server/troubleshoot/detect-enable-and-disable-smbv1-v2-v3
package_uuid : 3c1d622f-5872-4450-8c1b-78c3668fb85e
package_uuid : fa8fcb53-02fc-45bf-83ae-e65b04da16d3
valid_from :
valid_until :
forced_install_on :
changelog :
signer : Heuze Florent
signer_fingerprint: 609cb7b3556c1468082b757d212d7416fbcb4e13b1b54497d32647ac6c57f567
signature : uRVzEUyhA+VAJS04onz5kAdyzrmCKUHb3j0hOTQS7Cq5EIbrHcOw/F101tR5FYmZzdMBKgj31dp7UsG8E3yMTyyshexBXtrnSL97MN5K6Ju0PhycQDMIZ7uqStQtcy9330pde3Olr+HhfJ2qEDQ5d4B+hLpp8pU8Nj4y0DtphnPrmwgNUvI3aU5WcZOuDFicl3BgvDDv3vYdu5B6N9j+an4hF5LIcLUap3/Fu9dWo/AjWzHgi8RrbIkdbpSZWWrO6ICSj+Yvjrp0ePP7fhmzZktYbvmu4rf9+DMk34OM/XUnzXd4toaQ+pCC3JaK23w/EAfPeP2fHyk92BMuhbbMDA==
signature_date : 2020-12-31T17:29:57.704000
signature : VFwQHvw1kDFSS3zNNnpOH3qTX1Jkh6c28T849WuxuHJQabXbDBZUa9zPNcEyfXPb3ciQeXpSbwQVLanjZOSnN6OEEFv3xZ7N2WFepIA3KqWLIy6AzohV2fjuAyLWeUTPlg8w+fMLVYmKZoeVPuOU/3F4s/RNTeBeKTv/TVDqB92hcYjxzlS8yzyqZKwlyfKTXOnwgoeY3ehjceVq4jtwhS43ThvYdRKOq2ofm2ecIfZk6V/0UEWFmTfYk8reGsS4HVLzfQCjaK2hILMLqCEil8P+k9sWOoA0ro0ZWahHk+ap2mNSP6+ZroMsPuhbQJkZbuTYM8o+qSEJ6J+zK4IavQ==
signature_date : 2021-01-19T18:13:13.304000
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

View File

@ -15,6 +15,7 @@ def install():
exit
else:
run_powershell('Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol -NoRestart')
run_powershell('Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol-Deprecation -NoRestart')
print('Turn ON SMBv1 : %s' % (smbv1_status_enabled,))
print('Done, SMBv1 is now enabled. Reboot is required.')
exit
@ -29,6 +30,7 @@ def uninstall():
if smbv1_status_enabled:
run_powershell('Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol -NoRestart')
run_powershell('Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol-Deprecation -NoRestart')
print('Turn OFF SMBv1 : %s' % (smbv1_status_enabled,))
print('Done, SMBv1 is now disabled. Reboot is required.')
exit