Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: mapping network drives upon startup

10 May 2014   #1
dbinphilly

Windows 7 Home Premium 64 Bit
 
 
mapping network drives upon startup

I have a number of computers using Windows 7 which share network drives. Some have application shortcuts that are using mapped drives.

When the computers are booted, some do not remap the drives - an 'x' is next to the drive letter if you click on 'Computer'. This is a problem for those who are using shortcuts to start their mapped programs, since the mapping is not active.

Is there a way to insure that the mapping is activated upon start up?


My System SpecsSystem Spec
.
10 May 2014   #2
MilesAhead

Windows 7 32 bit
 
 

Instead of using the setting in Explorer to remap the drives on startup you can use a .cmd batch file with a delay. Here's an example of one with a 20 second delay. The number is in milliseconds. For a 10 second delay change 20000 to 10000 etc.. This gives the network time to connect before trying to map the drives.

( In a command prompt type: net use /help for switches )

Code:
ping 192.0.2.2 -n 1 -w 20000 > nul
net use x: \\host\shaer
net use y: \\host\share
Edit: put a shortcut to the cmd batch file (MapDrives.cmd or whatever) in the startup folder for each machine.

Edit: the address 192.0.2.2 is guaranteed not to exist. This forces the ping to wait until the set time-out(the -w switch)
My System SpecsSystem Spec
11 May 2014   #3
chev65

Windows 7 Ult, Windows 8.1 Pro,
 
 

Quote   Quote: Originally Posted by dbinphilly View Post
I have a number of computers using Windows 7 which share network drives. Some have application shortcuts that are using mapped drives.

When the computers are booted, some do not remap the drives - an 'x' is next to the drive letter if you click on 'Computer'. This is a problem for those who are using shortcuts to start their mapped programs, since the mapping is not active.

Is there a way to insure that the mapping is activated upon start up?
I've worked on this problem quite a few times in the past. There are two different methods to ensure that mapped drives connect on boot up.

There is a group policy setting that may help, this assumes you are using the Pro, Ultimate or Enterprise versions. If you are using the Premium version then use the second method as there is no group policy.

Start > Run > type "gpedit.msc" (without quotes) click ok.

Local Computer Policy > Computer Configuration > Administrative Templates > System > Logon > Always wait for the network at computer startup and logon

set this to Enable then reboot.


Or you could try adding the credentials from the server.

1. Go to Control Panel -> All control Panel Items -> Credentials Manager

2. Next to the heading "Windows Credentials" click on the link "Add a Windows credential".

3. Enter the name of your server and the appropriate credentials, reboot and check for mapping.

You might also want to set up a DHCP reservation for the local IP's or use static IP's so they don't change.
My System SpecsSystem Spec
.

Reply

 mapping network drives upon startup




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Question about Mapping Network Drives
Hello, I have a question about mapping network drives. When I map a shared folder as a network drive on the computer, I see the drive under "Computer", but it doesn't show on any other computer on the network. The folder is still accessible anywhere on the network, it just doesn't show as a...
Network & Sharing
Timeout mapping network drives at windows login
Hi there, This is my situation: I have a virtual machine running, and a network drive which is mapped to that machine. The problem here is that when I am trying to login on windows, windows is first trying to connect to that mapped network drive - which it cannot because my virtual machine...
Network & Sharing
Network drives are mapping themselves
I currently have one drive (N) mapped from my company's network: "Main Server\\Work Data\Document\Pictures" Starting last week, at least a few times per day, I see that there are new drives mapped to "Mainserver\\Work Data" - this folder used to be mapped to my computer, but it was disconnected...
Network & Sharing
Trouble Mapping Network Drives in Windows 7
I have my work network setup with ALL Windows 7 machines and up until recently I have had no problems mapping network drives. Now, I'm having trouble mapping a network drive but only from a specific computer, my laptop. I have multiple other PC's on my network mapped to the specific drive in...
Network & Sharing
Mapping network drives
I'm having a mapping problem. I have a Windows 2003 server in the workgroup group. My Windows 7 PC is in a domain. I'd like to share files between the domain and workgroup. Most of the time i can't see the Windows 2003 server. When I am able to, it asks for a username and password. I put it in...
Network & Sharing
Mapping Libraries to Network Drives. Possible?
I'm using XBMC on an HTPC, that connects to a server hosting all the media files. Both machines run 7 and I'd love to use Libraries to aggregate movies, TV shows, music, pictures, etc. coming from different folders. Unfortunately, from within XBMC libraries are unreachable. I thought about...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 15:52.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App