Skip to content

SMB1 sharing is not enabled with powershell command

The Powershell command to enable SMB1 sharing does not appear to work (.e., wrong syntax?), or requires a system reboot to fully enable.

- name: Enable SMB1
  win_command: powershell.exe -ExecutionPolicy ByPass -Command 'Enable-WindowsOptionalFeature -Online -FeatureName "SMB1Protocol" -All'
  register: smb1
  failed_when: smb1.rc != 0
  changed_when: False
  tags: win_workstation

Reference: [RTE Support #72262] Cannot open N:\Public on surface04