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 ...
-
28th November 2005, 10:56 AM #1
- Rep Power
- 0
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
-
-
IDG Tech News
-
28th November 2005, 11:19 AM #2 Re: Map network drives on wireless network
I map the drives in GP, and it works fine, not a script to map the drives!
-
-
28th November 2005, 11:26 AM #3 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.
-
-
28th November 2005, 11:44 AM #4 Re: Map network drives on wireless network
Agree with the above.
Can also help with long logons with wired PCs
-
-
28th November 2005, 12:09 PM #5 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!
-
-
28th November 2005, 12:19 PM #6 Re: Map network drives on wireless network
Yes but if the script runs before the network connection is there it still wont work.
-
-
28th November 2005, 02:35 PM #7
- Rep Power
- 0
Re: Map network drives on wireless network

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.
-
-
28th November 2005, 03:12 PM #8 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.
-
-
28th November 2005, 03:24 PM #9 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).
-
-
28th November 2005, 03:33 PM #10 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.
-
-
28th November 2005, 03:51 PM #11 Re: Map network drives on wireless network
You'd have to loop in a while loop constantly querying the Win32_NetworkAdapter WMI object.
-
-
28th November 2005, 04:41 PM #12 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.
-
-
29th November 2005, 11:14 AM #13 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.
-
-
29th November 2005, 11:18 AM #14
- Rep Power
- 0
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.
-
-
29th November 2005, 11:51 AM #15 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:
Similar Threads
-
By timbo343 in forum Windows
Replies: 11
Last Post: 2nd April 2012, 09:06 AM
-
By sidewinder in forum Windows
Replies: 5
Last Post: 26th November 2007, 07:40 PM
-
By netadmin in forum Scripts
Replies: 17
Last Post: 5th April 2007, 03:18 PM
-
By mac_shinobi in forum Scripts
Replies: 9
Last Post: 8th March 2007, 04:49 PM
-
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
-
Forum Rules