Mapped Drive get disconnected after every reboot.

marvz77

New member
Local time
8:26 PM
Messages
4
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Acer Veriton
OS
Windows 7 Pro X64
CPU
Core i3
Memory
4gb
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


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

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

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

NET USE [/PERSISTENT:{YES | NO}]
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
thanks for the reply, but sir can you teach me on how to edit this line of codes?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Acer Veriton
OS
Windows 7 Pro X64
CPU
Core i3
Memory
4gb
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:

LinkPublic.bat
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Back
Top