Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, April 1, 2019 7:43 AM
I have an issue when installing SMB1Protocol on a Windows Server 2016 Datacenter that i recently created from the following image:
"imageReference": {
"publisher": "MicrosoftWindowsServer",
"offer": "WindowsServer",
"sku": "2016-Datacenter",
"version": "latest"
When installing SMB1 via gui it says i need to specify an alternate source path. When checking the issue with powershell it says the feature is "DisabledWithPayloadRemoved"
I have tried to enable the feature with dism from the same iso:
dism /enable-feature /featurename:SMB1Protocol /source:wim:C:\temp\sources\install.wim:4
When searching on google most says that the specified local source path MUST be from an exactly the same patched image. I then tried to mount the image to a directory in order to patch it to the same level as my vm but with negative result:
Dism /Mount-Image /ImageFile:C:\temp\sources\install.wim /index:4 /MountDir:C:\temp\mount
Dism /image:C:\temp\mount /add-package /packagepath:C:\temp\Windows10.0-KB4489882-x64.cab
Dism /unmount-image /MountDir:C:\temp\mount /commit
Have been in contact with microsoft support via our csp, but the latest response was the recrate the image with another source image. We can not do that as this server is a prod server and scheduled to go live within two weeks.
How would i proceed from this?
All replies (6)
Monday, April 1, 2019 7:58 AM âś…Answered
Hi,
SMBv1 protocol cannot be enabled in Azure VMs due to security concerns.
Regards,
Msrini
Monday, April 1, 2019 8:06 AM
Okay, and there is absolutely no way of enabling it once the machine have already been created?
Monday, April 1, 2019 8:46 AM
Yes, you are correct. There is no way to enable SMBv1 protocol.
Regards,
Msrini
Monday, April 1, 2019 9:22 AM
Okay, thanks for input.
Monday, April 1, 2019 10:45 AM
Hi ,
Please 'Mark as answer' if any of the replies helped, so that others in the community who are looking for similar question, can benefit from it.
Regards,
Msrini
Thursday, April 4, 2019 1:26 PM
This is probably not supported in any way, but this is how I managed to Enable SMB1 on Server 2019 (should work for Server 2016 too):
- Download the Server 2016/2019 install media ISO on the VM (can even be the evaluation version)
- From the VM, mount the ISO and run powershell
- Get the Image Index from the Install.WIM in the ISO:
- Get-WindowsImage -ImagePath <mounted drive>\sources\install.wim
- Mount the Install.WIM with the Image Index found above:
- Mount-WindowsImage -ImagePath <mounted drive>\sources\install.wim -Path <path to to mount the image e.g. C:\temp\mount> -Index <Image Index>
Enable the SMB1Protocol Feature:
Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol -Source <mountpath>\windows\WinSxS -NoRestart
- Dismount the Windows Image:
- Dismount-WindowsImage -Path <mountpath> -Discard
- Reboot the VM
- After the reboot, verify status with PowerShell:
- Get-WindowsOptionalFeature -FeatureName SM1Protocol -Online
- Get-SmbServerConfiguration | Select EnableSMB1Protocol