Disable SMBv1 protocol

Check condition:

Get-WindowsOptionalFeature -Online -FeatureName smb1protocol

Disable SMBv1

Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol

Enable SMBv1:

Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol

A restart is required