Mapped Drive get disconnected after every reboot.


  1. Posts : 4
    Windows 7 Pro X64
       #1

    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 Computer


  2. Posts : 6,285
    Windows 10 Pro X64
       #2

    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


  3. Posts : 4
    Windows 7 Pro X64
    Thread Starter
       #3

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


  4. Posts : 6,285
    Windows 10 Pro X64
       #4

    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


 

  Related Discussions
Our Sites
Site Links
About 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 13:58.
Find Us