Re: URGENT REQUEST: Mapping network drives with spaces

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Lanwench [MVP - Exchange] (lanwench_at_heybuddy.donotsendme.unsolicitedmail.atyahoo.com)
Date: 03/08/05


Date: Tue, 8 Mar 2005 13:53:15 -0500

Makor wrote:
> I am trying to setup login scripots that map to shares that have
> spaces in the names - for example "Home Dir". I am using the
> following login scripts command:
> net use d: \\servername\Home Dir. This is not working obviously due
> to the space in the share name - I have tried using Home%20%Dir - but
> this also does not work.
>
> Anyone who can help - much appreciated.

In addition to the other reply - it's really better to create shares without
spaces in them.

net use x: \\server\share /persistent:no

And for home directories, you can use

net use h: / home /persistent:no

....provided you have the home directory path specified in the user's ADUC
properties.

Persistent:no is important to me - means I can change drive letter paths at
will & not have any conflicts with locally mapped drives. Since I don't want
anyone to use locally mapped drives, ever, I also like to put

    net use * /del

at the beginning of the login script just in case.

And I suppose you used d: as an example, right? Start your drive map letters
further down the alphabet. It isn't uncommon for a workstation to have A C D
E F, etc., set for local devices.

HTH



Relevant Pages

  • Re: URGENT REQUEST: Mapping network drives with spaces
    ... Also did you know that you can map clients to their home directories by ... > In addition to the other reply - it's really better to create shares ... > will & not have any conflicts with locally mapped drives. ...
    (microsoft.public.windows.server.sbs)
  • Persistent Shares viewable between users?
    ... When using login scripts the shares I've designated in there seem to be ... Forgive me if the syntax is slightly off as I'm doing this from memory. ... boxes and shares they may not know exist. ...
    (Focus-Microsoft)
  • login script - variables
    ... we currently have separate login scripts for each of our branch offices, ... scripts are all the same except for the servers they map too. ... Then Set %Server% to BAServer and goto DriveMap, ...
    (microsoft.public.windows.server.scripting)
  • Re: Mapped F Drive - group policy update problem
    ... Ensure you not have defined the follow policy setting: ... > set to map in the user properties of ... > We also have this mapping to get set in user login scripts (net use F: ... > background refresh according to Application Event Log with ID 1704, ...
    (microsoft.public.windows.server.active_directory)
  • Need to automate drive map for mobile users
    ... Easy way is to use login scripts that map the drive. ... active directory under your user properties, ... tab, you can specify a log in script to run, create a ...
    (microsoft.public.win2000.active_directory)