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: Mapped Drive get disconnected after every reboot.

05 Jul 2015   #1

Windows 7 Pro X64
Mapped Drive get disconnected after every reboot.

we have a folder named "Public" shared across the office running windows 7 pro. the problem is every time i map the folder "Public" to the other computer it got disconnected every reboot and ask for credential like the user and password. can somebody help to solve this. thanks..

My System SpecsSystem Spec
06 Jul 2015   #2

Windows 10 Pro X64

You could setup a batch file to run at login that does a net use to map the drive.

auto run a bat script in windows 7 at login

C:\WINDOWS\system32>net use /?
The syntax of this command is:

[devicename | *] [\\computername\sharename[\volume] [password | *]]
        [/USER:[dotted domain name\]username]
        [/USER:[username@dotted domain name]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

My System SpecsSystem Spec
11 Jul 2015   #3

Windows 7 Pro X64

thanks for the reply, but sir can you teach me on how to edit this line of codes?
My System SpecsSystem Spec

11 Jul 2015   #4

Windows 10 Pro X64

I'll try. Here is an example on my network, which has 3 computers, Desktop (this one), Webserver and Laptop.

From a Command Prompt I enter:

net use z: \\webserver\hp_h

That accesses the hp_h share on webserver and assigns it the letter Z: Then I can access anything on Z: from this computer (Desktop) via Windows Explorer or Command Line.

Now put that in a batch file, we'll call it LinkPubluic.bat using your setup, something like:

net use z: \\xxxxxxxx\Public (xxxxxxxx is the name of the computer with the shared Public folder)

Place LinkPublic.bat in your Startup folder:

Drag the batch file to Start, All Programs, Startup. Now when you login as that user, it will launch the batch file.
My System SpecsSystem Spec

 Mapped Drive get disconnected after every reboot.

Thread Tools

Similar help and support threads
Thread Forum
Mapped drive & USB drive letter conflict
I just built a new computer for work. Our server is mapped as letter “F” and this works unless I leave a USB card reader plugged in when I shut it down. On boot up one of the drives on the card reader gets assigned “F” and the mapped drive doesn’t work. I then have to remove the card reader and...
Network & Sharing
Office 2003 on Windows 7 - disconnected mapped drives
Here is the situation, and i've repeated it on more than one machine: Windows 7 Prof 32 bit, with Office 2003 SP3 on a Dell laptop. Everything works fine when on the network and connected. If the user takes the laptop offsite without shutting it down first and still has mapped drives when he...
Network & Sharing
Removing Disconnected Mapped NW Drive Icon
This strikes me as a strange issue. On one of my 'workhorse machines', (I use RD to connect to): 1) The previous OS was XP. From XP, I mapped a network drive (designated L:\). 2) The drive was not set to reconnect at logon 3) I installed Windows 7 Pro (which, of course, required a format of...
Network & Sharing
Mapped drive not in sync
My windows 7 mapped drives are not showing the same information. I have updated an excell file , but other users are not seeing the update Have disconnted the mapped drive but the information is not being updated. any help here would be appreciated.
Network & Sharing
Disk Management - chg drive letter-disconnected drive
My backup software's profile database is expecting to backup to H:, which was the drive letter for my external backup drive back in XP. This drive comes up in Win7 as K, because Win7 has given my four usb card reader drives the letters F,G,H,I. Disk Management will not show these four card reader...
General Discussion

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 07:54.
Twitter Facebook Google+