Multiple drive mappings under "profile"?

  • Thread starter Thread starter JonnieStyle
  • Start date Start date
J

JonnieStyle

Can I map various and multiple shares to various and multiple drive
letters under the profile tab on my active directory users?
I tried but it seems I can only do one...

What's the easiest way to do that (apart from bat files)? I'd like my
user to logon and see drive Q: drive R: and drive X: -- all mapped
from different shares...

Any ideas anybody?

Cheers.

Jon
 
JonnieStyle,

I might suggest that you take a look at either .bat/.cmd logon scripts or
that you take a look at using .vbs scripts and Group Policy Objects. Does
this help you?

But, to answer your question directly: yes, it is very possible and
extremely common to use multiple drive letters mapped to multiple shares.
Shoot, if you really wanted to you could use different drive letters mapped
to the same shared resource. There would obviously be little use for that
but it is possible. As indicated by the last example, the key is use the
same drive letter once and only once.

Here are some examples of the various methods possible:


logon.bat ( if you have a WIN9x / WINNT / WIN2000 / WIN XP client mix )

@echo off

net use O: /delete
net use O: \\server01\shareA

net use P: /delete
net use P: \\server01\shareB

net use Q: /delete
net use Q: \\server02\shareC



logon.cmd ( if you have WIN2000 and WIN XP clients )

@echo off

net use O: /delete
net use O: \\server01\shareA

net use P: /delete
net use P: \\server01\shareB

net use Q: /delete
net use Q: \\server02\shareC



logon.vbs ( if you have WIN2000 and WIN XP clients and want to use GPO )

Dim net
Set net = CreateObject("WScript.Network")
net.RemoveNetwork Drive "O:"
net.MapNetworkDrive "O:", "\\server01\shareA","False"
net.RemoveNetwork Drive "P:"
net.MapNetworkDrive "P:", "\\server01\shareB","False"
net.RemoveNetwork Drive "Q:"
net.MapNetworkDrive "Q:", "\\server02\shareC","False"

HTH,

Cary
 
Cary Shultz said:
JonnieStyle,

I might suggest that you take a look at either .bat/.cmd logon scripts or
that you take a look at using .vbs scripts and Group Policy Objects. Does
this help you?

But, to answer your question directly: yes, it is very possible and
extremely common to use multiple drive letters mapped to multiple shares.
Shoot, if you really wanted to you could use different drive letters mapped
to the same shared resource. There would obviously be little use for that
but it is possible. As indicated by the last example, the key is use the
same drive letter once and only once.

Here are some examples of the various methods possible:


logon.bat ( if you have a WIN9x / WINNT / WIN2000 / WIN XP client mix )

@echo off

net use O: /delete
net use O: \\server01\shareA

net use P: /delete
net use P: \\server01\shareB

net use Q: /delete
net use Q: \\server02\shareC



logon.cmd ( if you have WIN2000 and WIN XP clients )

@echo off

net use O: /delete
net use O: \\server01\shareA

net use P: /delete
net use P: \\server01\shareB

net use Q: /delete
net use Q: \\server02\shareC



logon.vbs ( if you have WIN2000 and WIN XP clients and want to use GPO )

Dim net
Set net = CreateObject("WScript.Network")
net.RemoveNetwork Drive "O:"
net.MapNetworkDrive "O:", "\\server01\shareA","False"
net.RemoveNetwork Drive "P:"
net.MapNetworkDrive "P:", "\\server01\shareB","False"
net.RemoveNetwork Drive "Q:"
net.MapNetworkDrive "Q:", "\\server02\shareC","False"

HTH,

Cary

Thanks so much for the examples! I think I can do what I want to
accomplish now. I was worried about the effects of mapping a drive if
the it's already mapped, which is why you'd use "net use O:
/delete"...

All the clients in the network (so far) are WinXP Pro. I'm hoping to
use the vbs with GPO, but I'm not much of a coder. Using this
example, maybe I won't have to be!

Thanks for the reply. I appreciate it.
 
Glad to be of assistance!

Cary

JonnieStyle said:
"Cary Shultz [A.D. MVP]" <[email protected]> wrote in message
JonnieStyle,

I might suggest that you take a look at either .bat/.cmd logon scripts or
that you take a look at using .vbs scripts and Group Policy Objects. Does
this help you?

But, to answer your question directly: yes, it is very possible and
extremely common to use multiple drive letters mapped to multiple shares.
Shoot, if you really wanted to you could use different drive letters mapped
to the same shared resource. There would obviously be little use for that
but it is possible. As indicated by the last example, the key is use the
same drive letter once and only once.

Here are some examples of the various methods possible:


logon.bat ( if you have a WIN9x / WINNT / WIN2000 / WIN XP client mix )

@echo off

net use O: /delete
net use O: \\server01\shareA

net use P: /delete
net use P: \\server01\shareB

net use Q: /delete
net use Q: \\server02\shareC



logon.cmd ( if you have WIN2000 and WIN XP clients )

@echo off

net use O: /delete
net use O: \\server01\shareA

net use P: /delete
net use P: \\server01\shareB

net use Q: /delete
net use Q: \\server02\shareC



logon.vbs ( if you have WIN2000 and WIN XP clients and want to use GPO )

Dim net
Set net = CreateObject("WScript.Network")
net.RemoveNetwork Drive "O:"
net.MapNetworkDrive "O:", "\\server01\shareA","False"
net.RemoveNetwork Drive "P:"
net.MapNetworkDrive "P:", "\\server01\shareB","False"
net.RemoveNetwork Drive "Q:"
net.MapNetworkDrive "Q:", "\\server02\shareC","False"

HTH,

Cary

Thanks so much for the examples! I think I can do what I want to
accomplish now. I was worried about the effects of mapping a drive if
the it's already mapped, which is why you'd use "net use O:
/delete"...

All the clients in the network (so far) are WinXP Pro. I'm hoping to
use the vbs with GPO, but I'm not much of a coder. Using this
example, maybe I won't have to be!

Thanks for the reply. I appreciate it.
 
Back
Top