In order to facilitate transferring files from my main PC to my VirtualBox machine running MS-DOS 6.22, I installed Microsoft Network Client 3.0. By using the PCNTND.DOS NDIS driver for the PCnet-FAST III (AM79C973) network card emulated by VirtualBox, I was able to finish the basic setup with no major issues in less than 30 minutes:
However, after setting LASTDRIVE=Z in CONFIG.SYS, attempting to mount any shared Samba drive using net use z: \\computer\temp failed with the following message:
Error 53: The computer name specified in the network path cannot be located
The first thing to check is to make sure that both computers are on the same workgroup and that their computer names contain at most 11 alphanumeric characters. Any security features such as firewall on the computer with the shared folders should be turned off. In my case, to save on conventional memory, I installed only TCP/IP, disabled DHCP (which doesn’t work properly with modern network devices anyway), only used the basic redirector and also turned off automatic network logon.
Next, disable password-protected sharing and enable 40-bit/56-bit encryption, which is needed as our Network Client 3.0 does not support 128-bit encryption. This can be done in Network and Sharing Center > Advanced sharing settings:
Open Local Security Policy editor and set correct values for Local Policies > Security Options > Network Security: LAN Manager authentication level:
You should also make sure that SMBv1 is installed. Windows 10 does not have support for Samba v1 by default but the feature can be added by opening Control Panel > Program and Features > Windows Features and check SMB 1.0/CIFS File Sharing Support:
You should also follow the instructions from Microsoft here and make sure that SMBv1 is indeed enabled. To make things simpler, the target folder should be shared with Everyone by using Advanced Sharing to avoid unnecessary security issues. Also try to disable Use Sharing Wizard from View > Folder Options:
With this everything should be all set and you can mount the shared folder with net use:
If you still have problems, take note that net use on MS-DOS Network Client can only be used with computer names, and not IP addresses. Make sure all file and folder names are 8.3 compliant and avoid usage of long filenames. Avoid deeply nested folders, which will cause weird behavior. Also, unless your shared drive has less than 2GB of free space left, it’s very likely that the amount of free space is always reported as 2,147,450,880 bytes, the maximum value allowed when INT 21H with AL=36H is used to calculate disk free space. See this for more details.