meta data for this page
Windows 10 Instructions. With Dokan 1.5.0
Activate admin account. Attach the samba drive as a location on admin. Set a password for the admin account. You will be prompted to enter this password the first time the script runs
Through Local Users/Groups (only in Windows 10 Pro and higher) Open the start menu [Windows]. Type “lusrmgr.msc”. Click “Users” in “Local Users and Groups” on the left. Double click on the “Administrator” account on the right. Uncheck “Account is disabled” and click “OK” or “Apply”. The Windows 10 administrator is activated.
Add the following bat to the startup folder on the user (not Administrator). run→ shell:startup
:TEST
ping -n 1 <Network Server> | find "TTL=" >nul
if errorlevel 1 (
goto RETRY
) else (
goto DOSTUFF
)
:RETRY
ping 127.0.0.1 -n 11>nul
goto TEST
:DOSTUFF
cd "C:\Program Files\Dokan\Dokan Library-1.5.0\sample\mirror\"
runas /savecred /user:Administrator "mirror.exe -r \\<Network Server>\Nas -l E"
Ensure that <Network server> is the ip of your Nas (e.g. 192.168.1.10) and the Nas is the name of the samba drive