+ Post New Thread
Results 1 to 9 of 9
Windows Server 2000/2003 Thread, Mapped network drives not showing in My Computer in Technical; Hi Strange problem that is happening on our terminal server 2003 sp2 standard edition. When a user logs on a ...
  1. #1

    Join Date
    Nov 2006
    Posts
    44
    Thank Post
    4
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Mapped network drives not showing in My Computer

    Hi

    Strange problem that is happening on our terminal server 2003 sp2 standard edition. When a user logs on a batch file runs mapping 3 networked drives. This seems to run correctly but only 1 or 2 driver show. I know the batch file works because i can go to the command promt and type net use, it then displays the 3 drives in the command window, but If i go to my computer they are not showing.

    Things i have tried;
    1. Log off and back on as the same user - result all network drives now show
    2. Clear that user profile and log on again - results in 1 or 2 mapped drives appearing
    3. Log a user on, run task manager stop the explorer.exe and start the explorer.exe process - result all mapped drives appear
    4. searched google tried to a patch but it says i am running the latest versions

    Here is what my batch file looks like

    Code:
    @echo off
    
    net use s: \\server2\staffdrive$ /persistent:no
    net use m: \\server3\sme /persistent:no
    net use p: \\server3\Programs /persistent:no
    net time \\server /set /yes
    
    call \\server\Ranger\Utils\printers.bat
    Any suggestions

    Thanks

  2. #2

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    9,377
    Thank Post
    354
    Thanked 1,349 Times in 927 Posts
    Blog Entries
    4
    Rep Power
    1203
    We use fully qualified domain names. Would it help you if you did the same?

    Code:
    @echo  off
    
    net use s: \\server2.domain.local.domain.local\staffdrive$ /persistent:no
    net use m: \\server3.domain.local.domain.local\sme /persistent:no
    net use p: \\server3.domain.local.domain.local\Programs /persistent:no
    net time \\server.domain.local /set /yes
    
    call \\server.domain.local\Ranger\Utils\printers.bat

  3. #3

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,824
    Thank Post
    372
    Thanked 544 Times in 507 Posts
    Rep Power
    184
    I'd suggest it's because you're running the bat elevated? If so, sometimes it won't show the files to "normal" users.

    (Ignoring the fact this link is to Vista, same applies) After you turn on User Account Control in Windows Vista, programs may be unable to access some network locations

    Simple way to try it is mapping it, as a non elevated account and seeing if you can access it?

    Steve

  4. #4

    Join Date
    Nov 2006
    Posts
    44
    Thank Post
    4
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Tried that now davep and no difference. Thanks
    Last edited by sarchs; 4th May 2011 at 04:13 PM.

  5. #5

    Join Date
    Nov 2006
    Posts
    44
    Thank Post
    4
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by Steve21 View Post
    I'd suggest it's because you're running the bat elevated? If so, sometimes it won't show the files to "normal" users.

    (Ignoring the fact this link is to Vista, same applies) After you turn on User Account Control in Windows Vista, programs may be unable to access some network locations

    Simple way to try it is mapping it, as a non elevated account and seeing if you can access it?

    Steve
    I have tried to map it logged on as a user and the drive appears already mapped in the map network drive window but it wont let me add it again

  6. #6

    Join Date
    Nov 2006
    Posts
    44
    Thank Post
    4
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Any other suggestions chaps?

  7. #7
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,550
    Thank Post
    518
    Thanked 56 Times in 50 Posts
    Rep Power
    30
    How about running a line to delete the connections before the line to connect them?
    I'm not sure of the syntax exactly as we use kixtart scripting but we had a similar issue so we ran a command to disconnect first.

    I think it would be something like
    Code:
    net use s: /DELETE /persistent:no

  8. #8

    Join Date
    Jan 2009
    Location
    Northants
    Posts
    146
    Thank Post
    5
    Thanked 11 Times in 10 Posts
    Rep Power
    14
    net use s: /DELETE /persistent:no
    Isn't quite right. From memory it is
    Code:
     Net use S: /Delete /Yes
    But that would need to be for each mapping ... you could also use
    Code:
     net use * /delete /yes
    at the top of the batch file.

    Skr

  9. #9
    TheMan100's Avatar
    Join Date
    Dec 2010
    Posts
    156
    Thank Post
    8
    Thanked 15 Times in 15 Posts
    Rep Power
    11
    What about just adding...
    TASKKILL /F /IM "explorer.exe"
    explorer.exe

    ...to your batch file, maybe not the best solution, but if stopping and restarting explorer works, this should do.



SHARE:
+ Post New Thread

Similar Threads

  1. Hide mapped network drives
    By timbo343 in forum Windows
    Replies: 11
    Last Post: 2nd April 2012, 10:06 AM
  2. Moodle 2.0 and mapped network drives
    By CyberNerd in forum *nix
    Replies: 6
    Last Post: 7th April 2011, 01:37 PM
  3. drives not showing up in my computer
    By bart21 in forum Windows Server 2000/2003
    Replies: 5
    Last Post: 4th November 2010, 09:58 PM
  4. Computer is not showing card reader drives
    By andyturpie in forum Windows 7
    Replies: 1
    Last Post: 11th August 2010, 10:08 AM
  5. Mapped Network Drives
    By spider6986 in forum Windows 7
    Replies: 7
    Last Post: 1st July 2009, 04:26 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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