We have a Windows 2012 R2 server that acts as a file server.

Initially our copy machine worked with scanning to the file share. After an update, the scan to file share stopped working and eventually we found out it was because the copy machine (3 years old, newest firmware) uses SMB version 1 and Microsoft had disabled this.

By running the following in powershell and rebooting I got SMB1 supported again and everything worked.

Set-SmbServerConfiguration –RejectUnencryptedAccess $false
Set-SmbServerConfiguration –EnableSMB1Protocol $true

But later after another reboot it has been disabled again.

What is happening? How can we permanently activate SMB1 support?


Since you are used to PowerShell (and it's good practice regardless)...enable it permanently on the server:

Add-WindowsFeature FS-SMB1

EDIT: As pointed out in the comments...SMB1 should NOT be used in a production environment when possible.