Win10 and Samba Netshares Visibility…Again

Mint is not seeing the shares on a recently updated Win 10 PC and vice versa by clicking Network on either Linux or Win10.

check SMB1 turned on in W10 – search "Turn On..", untick CIFS Removal

This turns on CIFS V1 after reboot

PS C:\Windows\system32> Get-SmbServerConfiguration | Select EnableSMB1Protocol

EnableSMB1Protocol
——————
True

PS C:\Windows\system32> Get-SmbServerConfiguration | Select EnableSMB2Protocol

EnableSMB2Protocol
——————
True

Get-WindowsOptionalFeature –Online –FeatureName SMB1Protocol

FeatureName      : SMB1Protocol
DisplayName      : SMB 1.0/CIFS File Sharing Support
Description      : Support for the SMB 1.0/CIFS file sharing protocol, and the Computer Browser protocol.
RestartRequired  : Possible
State            : Enabled
CustomProperties :
ServerComponent\Description : Support for the SMB 1.0/CIFS file sharing protocol, and the Computer
Browser protocol.
ServerComponent\DisplayName : SMB 1.0/CIFS File Sharing Support
ServerComponent\Id : 487
ServerComponent\Type : Feature
ServerComponent\UniqueName : FS-SMB1
ServerComponent\Deploys\Update\Name : SMB1Protocol

PS C:\Windows\system32> Set-SmbServerConfiguration -EnableSMB1Protocol $true

Confirm
Are you sure you want to perform this action?
Performing operation 'Modify' on Target 'SMB Server Configuration'.

PS C:\Windows\system32> Get-Item HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters | ForEach-Object {Get-ItemProperty $_.pspath}

EnableAuthenticateUserSharing : 0
NullSessionPipes : {}
ServiceDll : C:\Windows\system32\srvsvc.dll
ServiceDllUnloadOnStop : 1
autodisconnect : 15
enableforcedlogoff : 1
enablesecuritysignature : 0
requiresecuritysignature : 0
restrictnullsessaccess : 1
SMB1 : 1
Guid : {155, 14, 196, 255…}
SMB2 : 0
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Service
s\LanmanServer\Parameters
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Service
s\LanmanServer
PSChildName : Parameters
PSProvider : Microsoft.PowerShell.Core\Registry

Set-SmbServerConfiguration -EnableAuthenticateUserSharing $true

Confirm
Are you sure you want to perform this action?
Performing operation 'Modify' on Target 'SMB Server Configuration'.
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A

PS C:\Windows\system32> Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 1 -Force

It is then possible to CIFS mount the Win10 drive using:

stevee@6530b ~ $ smbclient -L \\192.168.1.5
WARNING: The "syslog" option is deprecated
Enter stevee's password:
Domain=[PRO6550B] OS=[Windows 10 Pro 18363] Server=[Windows 10 Pro 6.3]

Sharename Type Comment
——— —- ——-
ADMIN$ Disk Remote Admin
C$ Disk Default share
D Disk
D$ Disk Default share
IPC$ IPC Remote IPC
Users Disk
Connection to 192.168.1.5 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
NetBIOS over TCP disabled — no workgroup available

sudo mount -t cifs //192.168.1.5/D Public/ -o user=stevee

Password for stevee@//192.168.1.5/D: ****

I still can't see the Win10 shares in Network on Mint though…

It is also possible to add the Share by entering the IP address of the Mint PC in Network or a browser:

Best practices

  • It is advisable to set Microsoft network client: Send unencrypted password to connect to third-party SMB servers to Disabled.

Location

Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options

Check Services Required are running (maybe set to delayed start) on W10:

SSDP Discovery

UPnP Device Host

Function Discovery Provider Host

Function Discovery Resource Publication

AS usual n Windows, there is conflict between one app and another's info: PC says WORKGROUP in Basic Info:

but MSHOME.NET in Powershell:

PS C:\Users\stevee> Get-DnsClientCache

Entry RecordName Record Status Section TimeTo Data Data
Type Live Length
—– ———- —— —— ——- —— —— —-
49.74.18.172.in-addr.arpa 49.74.18.172.in-addr.a… PTR Success Answer 603061 8 Pro6550b.mshome.net
68.30.17.172.in-addr.arpa 68.30.17.172.in-addr.a… PTR Success Answer 603061 8 W7.mshome.net
w7.mshome.net AAAA NoRecords
w7.mshome.net W7.mshome.net A Success Answer 603061 4 172.17.30.68
pro6550b.mshome.net AAAA NoRecords
pro6550b.mshome.net Pro6550b.mshome.net A Success Answer 603061 4 172.18.74.49