MapNetworkDrive, can I map without a share?



I'm slowly increasing my scripting knowledge, but I need help with a
section of the login script I'm working on.

How do I map a network drive when there is no share name?

From the local command prompt I can use a NET command to map:

net use z:
\\wpg-svr-ish1\cacheroot\tor-svr-ish1\tor-svr-dc1\tor-data\h

But MapNetworkDrive doesn't seem to like the absense of an actual
share. Is there a way to get around this?

Comments welcome,

Marten



Background:

To increase inter-office file accessibility, we have incorporated
iShared devices from Packeteer. They are WAFS with cacheing
capabilities. I am now working on a unified login script for all
offices that can tell that a user is not logging in from their base
office and will map drives to the current office. But some drives,
such as the user folder, need to map back to their base office.

net use z:
\\wpg-svr-ish1\cacheroot\tor-svr-ish1\tor-svr-dc1\tor-data\h

this format is:
\\ the local iShared \ its cacheing folder \ the desired remote
office's iShared \ a server in the remote office \ the desired path on
the remote server....

\\tor-svr-dc1\tor-data\h is the valid path bypassing the iShared, but
it is slower access through the VPN.

In this sample, the "tor-" can be replaced with "van-" for another
office that wpg- can access. Van- can access Wpg- and Tor-, etc.
.



Relevant Pages

  • Re: Login Script - Drive Mapping
    ... the login script in the NetLogon folder, and they are all the same. ... We map 5 to 6 drives with this script. ... their profile, that no drives map....so it is not a persistent issue. ... I would still explicitly delete the T: map to make sure it is clear. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Login Script - Drive Mapping
    ... It is also not a PC authentication issue, as 99% of the login script works. ... We map 5 to 6 drives with this script. ... So on their home machine, I deleted their profile, and had them login....and ...
    (microsoft.public.windows.server.active_directory)
  • Re: Mapping to a DFS Root
    ... We just recently joined a laptop w/Vista Business to our domain. ... login script that runs, which maps 3 drives - F, S and T for all users. ... does not map. ...
    (microsoft.public.windows.vista.networking_sharing)
  • Re: Internet Replication
    ... about VPN's and remote access than I do. ... We intend to map a drive ... I also don't believe in mapping drives on ... shortcuts in My Network Places to shares that you've accessed across ...
    (microsoft.public.access.replication)
  • Re: Login Script question...
    ... > I was curious if there is a way that I can some how create a login script ... > be able to create a login script that will map out the drives that this ... > Is there a variable that we could use that would get the local server name ...
    (microsoft.public.win2000.group_policy)

Loading