|
Tips for Mapped Drives
aka "Shared Drives" or simply "Shares"
Contents
How to map a drive
How to Disable Auto
Logins Feature
How To Delete Mapped Drives That Aren't Needed Any More
Folder Sharing
Word of Caution to
Administrators
Unable to Map Drives
Backing up
your data files to a shared drive.
You can also use the net_use command to auto login to mapped drives
for your customers
To Disconnect a mapped
drive
Logon Script
keeps asking for a password
Why do some mapped drives show a red X or Disconnect on me after a
while
How
Drive Letters are Assigned to Mapped Drives
Did You Know That You Can Change the Assigned Windows Drive Letters
Mapping a Folder as a Virtual Drive with a Drive Letter
Not enough server storage is available to process this command
How can I make a particular drive always have the same drive letter
How to Create
a Password for a Mapped Drive
How to add a
Map Drive button to the toolbar
Cant mapped a drive
to your computer
Intro to
Mapped Hard Drives
Mapped drives can be very useful when
it comes to moving data around on an office or home network and they
do
have their usefulness. At work I have
one server with all my client's programs and I install each program
as needed
remotely via the mapped drive. Mapping
a drive essentially places the remote drive within your local drive
paths and thusacts like a local drive. You can now
install software from this drive as if it were actually part of your
local system, thus the
name "Mapped Drive". You can even
backup or restore software across the LAN to and from this mapped
drive.
For those of you who don't already know
how to map a drive I've included a link for you.
How to Map a
Drive in XP
It's pretty simple.
After you learn how to map drives
you'll want to read the rest of this article for the tips on how to
be more
effective with your shares. I'm
assuming here that the reader already has had some experience with
mapping drives.
One of the problems I typically see
with mapped drives is when Windows reboots it always tries and
reconnects
with the mapped drive. This might and
might not be a good idea at times. If there is a network issue or
server
issue where the mapped drives resides
it could significantly delay your boot up time or cause annoying
errors.
Which is why I always try and use the
UNC address when possible.
UNC
Address Definition: UNC provides a naming convention for
identifying network resources. A UNC name consists of three parts, a server name, a share
name, and an optional file path, that are combined using
backslashes
as follows:
\\server\share\file_path
or
\\10.10.1.29\ShareName\FolderName
Yes they are other ways to prevent
Windows from trying to reconnect at login. One way is through
Windows Explorer.
You can uncheck the following
tick mark when you first try and map a drive..

Or you could tell Windows to disable
this feature all together.
How to Disable Auto
Logins Feature
First thing you'll want to do is load
up regedit
(Start -> Run then type regedit and
press the Ok button) and scroll to this path
HKEY_USERS -> Default ->
Software -> Microsoft -> WindowsNT -> CurrentVersion -> Network ->
Persistent Connections.
Once there look for the SaveConnections
string value and give it the value 'no'.
Now when you boot your system your
computer will not automatically try to reconnect with any mapped
drives.
How To Delete Mapped Drives That Aren't Needed Any More
When I no longer need the links, I do
the following:
Open My
Computer. You should see a drive
for each of the mapped network drives. Right-click a drive you
want to delete and choose Disconnect.
The drive assignment will disappear from My Computer and from the
Map Network Drive dialog box.
Top
Folder Sharing
With Windows when you share a folder or
drive on a network, users can see all the shared drives simply by
browsing
the network, even if they don't have
permission to access the share. A good trick to hide these shared
drives from
these users is to put a "$" after the
shared name.
For instance, if you're going to share
the C drive on your system put a shared name for the drive as
follows: C$
So your path to the drive
would be
\\10.10.1.29\ShareName$
Word of Caution to
Administrators
Administrators must take
precautions when logging into workstations that have drive mappings
to their servers. Many viruses will
propagate using the mapped drive. If an administrator has full
access to servers and logs-in to a workstation that has a
drive mapped to a server, and the workstation happens to be infected
with a worm, it may infect the server as
well.
Mapping a network drive requires TCP
ports 135, 139 and 445 along with UDP port 137 to be open.
A quick google search on these ports
will show multiple vulnerabilities out there for these ports. So be
careful.
Unable to Map Drives?
If you are unable to map a drive check
that the "Server" service is running on your box and/or
File and Printer Sharing
is not disabled.
Summary of Possible
Causes:
1. Server service is disabled.
2. Fie and Printer Sharing is disabled.
(Sometimes you need to disable, reboot
and enable again...)
3. No folders are shared.
4. Firewall blocks the sharing.
Backing up
your data files to a shared drive.
You could map your drive and then use
the internal Windows Backup program to copy your important files
to a shared drive for safe keeping.
When asked where to back up the files to just browse the network for
the
shared drive. All free, just the way I
like it.
Top
You
can also use the "net use" command to auto login to mapped drives
for your customers
You can use the
net use command for batch files and scripts. To use the
net use command to map or disconnect
a drive: Click
Start, and then click Run
In the Open box, type
cmd.
Type net use
x: \\computer name\share name, where
x: is the drive letter you want to assign to the
shared resource.
To Disconnect a mapped
drive:
Type net use
x: /delete, where x: is the drive letter of
the shared resource.
Logon Script
keeps asking for a password?
Symptom:
I use a login batch file to map a network drive when starting the
computer. The problem is that it
always asks me for the password. How
can I make that it remembers the password?
Resolutions:
1. Add the password into the login
batch file, for example, net use
\\computername\shared password
2. If you are logging on a peer-to-peer workgroup, create the same
user account and password on both computers.
Why do some mapped drives show a red "X" or Disconnect on me after a
while?
SYMPTOMS:
You find that the network drive mapping may be disconnected after 15
minutes of inactivity
and Windows Explorer
may display a red "X" on the icon of the mapped drive. However, if
you double-click it reconnects quickly.
RESOLUTION:
by default, idle connections will be dropped after 15 minutes. To
modify idle time, at a command
prompt using
net config server
/autodisconnect: minutes.
For example, to set the
Autodisconnect value to
30 minutes, you would run the following
command line:
net config server /autodisconnect:30
If you would like to turn
Autodisconnect off, do net
config server /autodisconnect:-1
How Drive
Letters are Assigned to Mapped Drives.
When mapping a drive in Windows 2K
it automatically chooses the next available drive letter, and
you can
accept that choice or choose a
different (unused) letter. Vista and XP select Z
for the first mapped drive,
then work backwards through the
alphabet as you add more mapped drives.
Top
Did You Know That You Can Change the Assigned Windows Drive Letters?
Control panel, Administrative Tools,
Computer Management
You should be here:

Now just right click on the drive you
want to change the letter on, as shown below:

Microsoft has
a link to this tip as well.
>
MS How to chg
drive letters
Be careful here. Make sure the drive
letter you choose is not already in use. You may have to change some
drives to a temporary drive letter in
order to get it to have the drive letter you want.
Top
Mapping a Folder as a Virtual Drive with a Drive Letter
It can be useful to map a very deep
nested folder as a drive letter, so it is easier to access by
Windows Explorer
along with all the other applications
that might access that folder. This is done with the "subst"
command.
Command line is: Subst x:
C:\Very\Long\Folder\Path
where "x" is the desired drive letter.
To free up the assigned drive letter
again
use the subst command again.
Command line is:
Subst x: /D
Note:
When you reboot, these designations are cleared. To make it stick
you need to run a batch file with these
commands at start up.
Here's a
Problem I encounter often when trying to connect to one of my mapped
drives on my network.
"Not
enough server storage is available to process this command"
Took me a while to find the answer to
this one so I had to include it.
This error message indicates the
IRPStackSize bug on the remote computer (the one you are
trying to access
over the network). On that computer
open the event log and check for event ID 2011. If this is
present, it is a
strong indication of this particular
bug. To repair it, you need to set the IRPStackSize parameter in the
registry to a
value of 25. Maybe even a higher
number. Default is 15.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters
Check for the presence of a value named IRPStackSize. If it doesn't
exist, create it as type DWORD and, with
base set to decimal, enter the
value 25. Exit from the registry and reboot the computer.
I know I'll need this one again
someday.
A problem I sometimes run into is by
disconnecting and connecting various drives my drive letters
get all crazy.
How can I make a particular drive
always have the same drive letter?
Go to Control Panel, Administrative
Tools, Computer Management. Click on Storage in the left pane, then
on
Disk Management. Click on a drive and
then properties. Then select "Change Drive Letter and Paths"

Pressing enter you should see the
following screen:

Top
Hit the Change button and you will see
the following screen:

Assign the letter you want and that's
it. It should keep this designation from now on.
Note:
Note that Windows won’t let you change the letter of the system or
boot volume, normally C: - Good thing.
Also, this applies to each physical
device, not only virtual partitions. I try to use this mainly for my
many USB drives.
And remember, If your computer is
networked, you can also assign shared folders on a remote PC to a
drive letter.
How to Create
a Password for a Mapped Drive
Mapped drives or
Shared Folders are accessed on the network using the guest account,
once the password for the guest account is
set, a user in your workgroup or network domain must supply a valid
username and password for the guest account to
access the shared folder and contents within. We therefore need to
turn on the password optionfor the guest
account. By default it is off - no password required.
-
Log into Windows XP
as an Administrator
-
Click Start
-> Control Panel -> User Accounts, then
click on Guest Account and make
sure it is turned on
-
Now Click
Start -> Run, type cmd
in the entry box, and click Ok
-
At the command
prompt, type Net user guest password
and press Enter - Gives Guest
Acct password option.
-
Again, Click
Start -> Control Panel -> User Accounts,
then click on Guest Account
Notice that you can now set a password on the
Guest Account. Set a Password and restart your
Computer
I also found an
article
about this as well.
How to add a "Map
Drive" button to the toolbar
Want to make it easier and quicker to map network
drives and disconnect from them? You can put "Map
Drive" and "Disconnect" buttons on the Explorer
toolbar so you won't have to go through menus to do
it. Here's how:
-
Click Start | My
Computer.
-
Right click the
toolbar, then click Customize.
-
In the Customize
Toolbar dialog box, scroll down to Map Drive in
the list of Available Toolbar Buttons in the
left pane and highlight it.
-
Click the Add
button.
-
In the left pane,
highlight Disconnect.
-
Click the Add
button.
-
Click the Close
button.
-
Now the new buttons
appear on your toolbar. To map a drive, click
the Map Drive button and navigate to the drive
you want to map.
Can't mapped a drive to your computer?
Possible
Causes:
1. Server
service is disabled.
2. Fie and Printer Sharing is disabled.
3. No folders are shared.
4. Firewall blocks the sharing.
Top |