Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    May 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is there a way to map drive for all Users?

    Does anyone know of a way to map a drive for any user that logs in to Windows 7, including a newly created user? the mapping is going to a file server that is not a domain and not using active directory.

  2. #2
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,175
    Thanks
    47
    Thanked 982 Times in 912 Posts
    Mapping is per user so you need to run a command when any user logs in. You could put a batch file in All Users\Startup.

    cheers, Paul

  3. #3
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,434
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Tyjo,

    Try creating a batch file to issue the Net Use command and place it here:
    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

    Edit: Note when you open Notepad to create the file make sure you use "Run as Administrator" or it won't let you save the the directory above. Also if your network path has spaces be sure to enclose it in " ".

    I tested this and it works, however I only have one account on this machine and it is an administrator account so some testing will be required.
    Last edited by RetiredGeek; 2011-05-24 at 14:25. Reason: More Info
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  4. #4
    New Lounger
    Join Date
    May 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks to All.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •