Map drive to different targets depending on localhost name
Posted on 2016-10-03
Looking for a script of sorts to map a network drive to site specific storage.
1 AD domain
2-3 Windows Server per site
1 admin account used to logon to all servers
3x External storage devices per site
What needs to happen in script;
When the admin account logs on to a server that is located in site two the logon script needs to map drive letter H: to that specific site storage.
Same for the rest of the sites.
Was thinking of using a text file with host names but not sure how to link the specific sites.
efspdc = site 2 = edf-syn
hostname = site = storage
Thank You in advance.