for Win users with problem to find NAS by NAME

Currently reading
for Win users with problem to find NAS by NAME

jeyare

Subscriber
2,424
806
NAS
Synology, TrueNAS
Operating system
  1. Linux
  2. Windows
when you are still having trouble setting up your Win OS based PC and can't map or resolve your NAS via NASNAME and you want to use NASNAME in the mapping only, here is a small script for your quick action:

Bash:
@echo off
SET NEWLINE=^& echo.
FIND /C /I "servername" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^NAS.IP.ADDRESS NASNAME>>%WINDIR%\System32\drivers\etc\hosts

you need just edit this script in last line and replace part "NAS.IP.ADDRESS NASNAME" like this: 192.168.100.10 MYNAS
then save the script to somewhere e.g. C:\script.bat
and RUN it as ADMINISTRATOR
restart your computer and enjoy!
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

  • Question
I recommend purchasing an external dock. I find this capability essential for troubleshooting and disk...
Replies
9
Views
1,993
These folders are installed for the 1st time when you install certain apps that depend on it/use them...
Replies
1
Views
642

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Top