Results 1 to 3 of 3

Thread: .bat script for reconnecting net drives

  1. #1
    Join Date
    Jan 2011
    Posts
    1

    .bat script for reconnecting net drives

    Hello.

    Im trying to create a script that would reconnect users to specific network drives on a domain.

    there are about 16 users in total

    im stumped to be honest i have just started learning how to do this.

    Reason being 13 of them can only see 2 drives the next 2 to see 3 drives and the last has his own drive on the server that i have hidden so he can be the only one to get to that hidden drive.

    This is what i have so far

    Code:
    @echo off
    
    net use h: /delete
    net use f: /delete
    
    net use h: \\server\work
    net use f: \\server\info

    But i have no clue how to set up for the next 2 to see the 3 and the last one to see the 3 plus his hidden drive.

    As i said i just recently been trying to learn this.

    Id be great full for any help

    Thanks.

  2. #2
    Join Date
    Jun 2009
    Posts
    1,112

    Re: .bat script for reconnecting net drives

    You can play with logon scripts here to map those drives on sever. This really reduces your work load. I had provided a site which provides more lights on the script creating with some definition. You can also search on how to create an logon script for your domain so that you can run the script just and get connected. This makes your job much easier to an extent.

    MapNetworkDrive Method

  3. #3
    Join Date
    Feb 2011
    Posts
    129

    Re: .bat script for reconnecting net drives

    Well I want you to use the below mentioned code and I think this code will definitely help you to resolve the issue that you facing:

    Code:
    net use x: /d
    and
    net use x: \\servername\sharename
    
    commands to delete-map and map.
    type "net use /?" at the command prompt to get help on the command.

Similar Threads

  1. Logoff Script for Dissconnecting Mapp Drives .
    By mypass604 in forum Operating Systems
    Replies: 2
    Last Post: 16-10-2009, 09:10 AM
  2. iPhone keeps reconnecting
    By dnice in forum Portable Devices
    Replies: 3
    Last Post: 02-07-2009, 01:33 PM
  3. VBS script to map drives
    By Laler in forum Software Development
    Replies: 3
    Last Post: 14-04-2009, 01:48 PM
  4. Removing and remapping network drives using logon script
    By jacobscharlene in forum Software Development
    Replies: 1
    Last Post: 17-12-2008, 03:43 PM
  5. Unable to map drives with logon script
    By c54618 in forum Windows Server Help
    Replies: 5
    Last Post: 03-05-2008, 07:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,248,785.27359 seconds with 17 queries