+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 25
Windows Thread, Map network drives on wireless network in Technical; At the moment, we have several drives mapped through a script that is run through GP . We are testing ...
  1. #1
    woody's Avatar
    Join Date
    Jun 2005
    Location
    Carlisle, Cumbria
    Posts
    619
    Thank Post
    3
    Thanked 17 Times in 15 Posts
    Rep Power
    22

    Map network drives on wireless network

    At the moment, we have several drives mapped through a script that is run through GP.

    We are testing laptops on the network with a wireless connection. The problem is, if the wireless takes a little too long to connect when logging on, the scripts don't run and the drives don't get mapped.

    I thought of mapping the drives manually and set them to reconnect at logon, but of couse when I do this, if the script runs as well, you get an error saying that the local drive is already taken. Is there an easy way to edit this script so that it only maps the drive if that letter isn't already taken?? Here is the script I use:

    ----
    Dim pub
    Set pub = CreateObject("Wscript.Network")
    pub.MapNetworkDrive "P:","\\Currserv3\public"
    ----

    I want something like, if P: is taken do nothing else continue

    Make sense? My other alternative is to put all the laptops in a seperate GP where the script doesn't run, but I would like to try the script route first.

    Thanks

  2. #2
    StewartKnight's Avatar
    Join Date
    Jun 2005
    Posts
    1,587
    Thank Post
    2
    Thanked 27 Times in 21 Posts
    Rep Power
    31

    Re: Map network drives on wireless network

    I map the drives in GP, and it works fine, not a script to map the drives!

  3. #3

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,847
    Thank Post
    110
    Thanked 593 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Map network drives on wireless network

    Disable asynchronous processing with the policy setting "Always wait for the network at computer startup and logon". This is found in the computer configuration/administrative templates/system/logon.

  4. #4
    Guest

    Re: Map network drives on wireless network

    Agree with the above.

    Can also help with long logons with wired PCs

  5. #5
    StewartKnight's Avatar
    Join Date
    Jun 2005
    Posts
    1,587
    Thank Post
    2
    Thanked 27 Times in 21 Posts
    Rep Power
    31

    Re: Map network drives on wireless network

    or.... add the script to each machine at:

    Docs & settings
    All Users
    Start Menu
    Programs
    Startup


    Thats what I do for the laptop printers script!

  6. #6

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,847
    Thank Post
    110
    Thanked 593 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Map network drives on wireless network

    Yes but if the script runs before the network connection is there it still wont work.

  7. #7
    woody's Avatar
    Join Date
    Jun 2005
    Location
    Carlisle, Cumbria
    Posts
    619
    Thank Post
    3
    Thanked 17 Times in 15 Posts
    Rep Power
    22

    Re: Map network drives on wireless network

    Quote Originally Posted by Geoff
    Disable asynchronous processing with the policy setting "Always wait for the network at computer startup and logon". This is found in the computer configuration/administrative templates/system/logon.
    I have already tried this plus a few other options, but they don't seem to work. I can still log on and not receive the mapped drives. It usualyy takes me a few attempts at logging on depending on the level of signal before it catches up and runs the scripts.

    I thought if I manually map the drives, they will sit there happily even if not connected wirelessly until the connection becomes live.

  8. #8

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,847
    Thank Post
    110
    Thanked 593 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Map network drives on wireless network

    Lazy way to do it is to stick a delay in the login script.

    Complicated way is to rewrite it as VBS and let it run in a loop that checks for network avaliability and then sets up the drive mappings after its made sure the network is there.

  9. #9
    OverWorked's Avatar
    Join Date
    Jul 2005
    Location
    N. Yorks
    Posts
    1,023
    Thank Post
    200
    Thanked 42 Times in 34 Posts
    Rep Power
    30

    Re: Map network drives on wireless network

    I've always been plagued by this problem, even (though less frequently) on wired machines.

    Stewart - how do you map drives in GP without a script? I didn't think this was possible. I have GP set a logon script that maps drives and connects printers, but it doesn't always work.

    Does anyone have a script then does what Geoff suggests? It seems like the best answer. (I'm pretty hopeless at VBS).

  10. #10

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,592
    Thank Post
    109
    Thanked 770 Times in 598 Posts
    Rep Power
    183

    Re: Map network drives on wireless network

    The default in XP is for mapped drives to be synchronised. If this is the case, they will be available for reconnection.

    If you have disabled synchrnisation, maybe try re-enabling it on one of the drives to see if it helps.

  11. #11

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,847
    Thank Post
    110
    Thanked 593 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Map network drives on wireless network

    You'd have to loop in a while loop constantly querying the Win32_NetworkAdapter WMI object.

  12. #12
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,487
    Thank Post
    10
    Thanked 502 Times in 442 Posts
    Rep Power
    114

    Re: Map network drives on wireless network

    Is windows being allowed to control the wireless connection directly? On some belkin cards I have the utility allows you to specify that you want windows to control it, otherwise things like wep etc are only configured when the card utility is run at login.

    XP SP2 is a great help, I'm not running any of the client utilities anymore, just install the driver and configure the windows wireless for the rest.

  13. #13
    OverWorked's Avatar
    Join Date
    Jul 2005
    Location
    N. Yorks
    Posts
    1,023
    Thank Post
    200
    Thanked 42 Times in 34 Posts
    Rep Power
    30

    Re: Map network drives on wireless network

    @DMcCoy

    I had the same problem with Belkin cards, and others. The trouble with the vendor's utilities is that they don't run until the user logs on, so its useless if you're logging on to a domain - you need it to be running when the machine boots up.

    I quickly gave up using the vendor's utilities for this reason, and just let XP manage the wireless connection.

  14. #14
    woody's Avatar
    Join Date
    Jun 2005
    Location
    Carlisle, Cumbria
    Posts
    619
    Thank Post
    3
    Thanked 17 Times in 15 Posts
    Rep Power
    22

    Re: Map network drives on wireless network

    XP manages the wireless before you log on? How do you get it to do this? Every time I log on, it takes a few seconds before the wireless connects. I would love to get them to connect the minute they are switched on.

  15. #15

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,847
    Thank Post
    110
    Thanked 593 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Map network drives on wireless network

    The Windows Zero Configuration Service. You also need a W2k3 server with the appropriate WiFi GPO setup.



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Hide mapped network drives
    By timbo343 in forum Windows
    Replies: 11
    Last Post: 2nd April 2012, 10:06 AM
  2. Replies: 5
    Last Post: 26th November 2007, 07:40 PM
  3. Map network drives
    By netadmin in forum Scripts
    Replies: 17
    Last Post: 5th April 2007, 04:18 PM
  4. Mapping Network Drives ?
    By mac_shinobi in forum Scripts
    Replies: 9
    Last Post: 8th March 2007, 04:49 PM
  5. Map network drives
    By timbo343 in forum Scripts
    Replies: 7
    Last Post: 1st March 2007, 07:46 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
  •