
Logon Script Drive Mapping
That should be
WshNetwork.MapNetworkDrive "Z:", " \\server\share", TRUE not
WshNetwork.MapNetworkDrive "Z:", " \\server\share", UpdateProfile=TRUE
This should work for you.
Clarence
--
http://cwashington.netreach.net
On THIS site you will find everything you need to get up and running. A
script repository with over 200 FREE sample scripts, a downloads section
with FREE COM objects for scripting, a library of reference materials and a
online discussion lounge to provide community based technical support. Check
it out.
Quote:
> Howdy
> Im having a problem updating a users problem so that a mapped network
> drive will reconnect at login (the same as the /persistant switch when
using
> net use. This is running on NT4 with SP4 and IE5; using WSH 2.0 beta also
> with the 5.0 scripting engine install (tried without that too). The code
is
> as follows (2 lines only):
> Set WshNetwork = Wscript.CreateObject("Wscript.Network")
> WshNetwork.MapNetworkDrive "Z:", " \\server\share", UpdateProfile=TRUE
> The drives correctly map, (I've made the server\share generic for this
post
> due to Corp.security, but they dont get updated in HKCU Network section of
> the registry. In fact, it does the same exact thing whether or not I use
> the UpdateProfile boolean. I've tried using the letter 'b' infront of
> UpdateProfile, using True, true, Yes, and I think I've even tried '1'.
Any
> ideas?
> Love to all
> E-