|
List Info
Thread: Mapping network drive error
|
|
| Mapping network drive error |
  United States |
2007-10-11 22:42:11 |
I am running 2003 STD with AD. Using group policy I have
the
following code to map 2 network drive. The drives map
correctly, but
I still get error 80070055 "The local device is already
in use" I
know for a fact that there are no other mapped drives.
Every
workstation only has C: and D:. This happens for every
workstation
and user.
Option Explicit
Dim objNetwork, strRemotePath1, strRemotePath2
Dim strDriveLetter1, strDriveLetter2
strDriveLetter1 = "Z:"
strDriveLetter2 = "X:"
strRemotePath1 = "\shaktishared"
strRemotePath2 = "\shaktisoftware"
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1
objNetwork.MapNetworkDrive strDriveLetter2, strRemotePath2
Wscript.Quit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Windows 2003" group.
To post to this group, send email to Windows2003 googlegroups.com
To unsubscribe from this group, send email to
Windows2003-unsubscribe googlegroups.com
For more options, visit this group at http
://groups.google.com/group/Windows2003?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Mapping network drive error |
  United States |
2007-10-15 13:17:36 |
Anyone? Thoughts? Ideas? Good meatloaf recipe?
On Oct 11, 8:42 pm, Drunken Panda <lau.a... gmail.com> wrote:
> I am running 2003 STD with AD. Using group policy I
have the
> following code to map 2 network drive. The drives map
correctly, but
> I still get error 80070055 "The local device is
already in use" I
> know for a fact that there are no other mapped drives.
Every
> workstation only has C: and D:. This happens for every
workstation
> and user.
>
> Option Explicit
> Dim objNetwork, strRemotePath1, strRemotePath2
> Dim strDriveLetter1, strDriveLetter2
> strDriveLetter1 = "Z:"
> strDriveLetter2 = "X:"
> strRemotePath1 = "\shaktishared"
> strRemotePath2 = "\shaktisoftware"
> Set objNetwork =
CreateObject("WScript.Network")
> objNetwork.MapNetworkDrive strDriveLetter1,
strRemotePath1
> objNetwork.MapNetworkDrive strDriveLetter2,
strRemotePath2
> Wscript.Quit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Windows 2003" group.
To post to this group, send email to Windows2003 googlegroups.com
To unsubscribe from this group, send email to
Windows2003-unsubscribe googlegroups.com
For more options, visit this group at http
://groups.google.com/group/Windows2003?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Mapping network drive error |
  United States |
2007-10-15 14:06:19 |
That looks exactly like the mapped drive script I've got on
my domain.
i.e.:
<dim>.MapNetworkDrive <driveletter>,
<path>
Any chance there is more than one policy that calls this
script for
your users? Or, alternatively, is there any chance you've
set the
security filtering (at the GPO) to include both the
computers AND the
users? I haven't tried that myself, but with it you could
theoretically create the mapped drive at Startup and then
try and
create it again at Logon, resulting in a combination error
and working
mapped drive. (?)
It is kind of bizarre. =]
On Oct 11, 8:42 pm, Drunken Panda <lau.a... gmail.com> wrote:
> I am running 2003 STD with AD. Using group policy I
have the
> following code to map 2 network drive. The drives map
correctly, but
> I still get error 80070055 "The local device is
already in use" I
> know for a fact that there are no other mapped drives.
Every
> workstation only has C: and D:. This happens for every
workstation
> and user.
>
> Option Explicit
> Dim objNetwork, strRemotePath1, strRemotePath2
> Dim strDriveLetter1, strDriveLetter2
> strDriveLetter1 = "Z:"
> strDriveLetter2 = "X:"
> strRemotePath1 = "\shaktishared"
> strRemotePath2 = "\shaktisoftware"
> Set objNetwork =
CreateObject("WScript.Network")
> objNetwork.MapNetworkDrive strDriveLetter1,
strRemotePath1
> objNetwork.MapNetworkDrive strDriveLetter2,
strRemotePath2
> Wscript.Quit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Windows 2003" group.
To post to this group, send email to Windows2003 googlegroups.com
To unsubscribe from this group, send email to
Windows2003-unsubscribe googlegroups.com
For more options, visit this group at http
://groups.google.com/group/Windows2003?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Mapping network drive error |
  United States |
2007-10-16 10:17:19 |
I tired to lookup the VB command to destroy a network map...
but i'm
to busy today sorry, but my only thought would be to execute
a command
to destroy anything that might be using that particular
drive letter,
and then have it be remade.
sort of like a net stop command in a batch file, i know
there's
something in VB that does it, just couldn't find it in the
first 5
secs of looking
On Oct 15, 3:06 pm, Justin Brown <jcbr... gmail.com> wrote:
> That looks exactly like the mapped drive script I've
got on my domain.
> i.e.:
> <dim>.MapNetworkDrive <driveletter>,
<path>
>
> Any chance there is more than one policy that calls
this script for
> your users? Or, alternatively, is there any chance
you've set the
> security filtering (at the GPO) to include both the
computers AND the
> users? I haven't tried that myself, but with it you
could
> theoretically create the mapped drive at Startup and
then try and
> create it again at Logon, resulting in a combination
error and working
> mapped drive. (?)
>
> It is kind of bizarre. =]
>
> On Oct 11, 8:42 pm, Drunken Panda <lau.a... gmail.com> wrote:
>
> > I am running 2003 STD with AD. Using group policy
I have the
> > following code to map 2 network drive. The drives
map correctly, but
> > I still get error 80070055 "The local device
is already in use" I
> > know for a fact that there are no other mapped
drives. Every
> > workstation only has C: and D:. This happens for
every workstation
> > and user.
>
> > Option Explicit
> > Dim objNetwork, strRemotePath1, strRemotePath2
> > Dim strDriveLetter1, strDriveLetter2
> > strDriveLetter1 = "Z:"
> > strDriveLetter2 = "X:"
> > strRemotePath1 = "\shaktishared"
> > strRemotePath2 = "\shaktisoftware"
> > Set objNetwork =
CreateObject("WScript.Network")
> > objNetwork.MapNetworkDrive strDriveLetter1,
strRemotePath1
> > objNetwork.MapNetworkDrive strDriveLetter2,
strRemotePath2
> > Wscript.Quit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Windows 2003" group.
To post to this group, send email to Windows2003 googlegroups.com
To unsubscribe from this group, send email to
Windows2003-unsubscribe googlegroups.com
For more options, visit this group at http
://groups.google.com/group/Windows2003?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Mapping network drive error |

|
2007-10-16 10:22:38 |
So I tried that with code I found online and it gave me the
same
error. I also tried using an if-else structure to check if
it was
assigned or not.
Thanks,
Alex
On 10/16/07, Christopher.DeRemer gmail.com
<Christopher.DeRemer gmail.com> wrote:
>
> I tired to lookup the VB command to destroy a network
map... but i'm
> to busy today sorry, but my only thought would be to
execute a command
> to destroy anything that might be using that particular
drive letter,
> and then have it be remade.
>
> sort of like a net stop command in a batch file, i know
there's
> something in VB that does it, just couldn't find it in
the first 5
> secs of looking
>
> On Oct 15, 3:06 pm, Justin Brown <jcbr... gmail.com> wrote:
> > That looks exactly like the mapped drive script
I've got on my domain.
> > i.e.:
> > <dim>.MapNetworkDrive <driveletter>,
<path>
> >
> > Any chance there is more than one policy that
calls this script for
> > your users? Or, alternatively, is there any chance
you've set the
> > security filtering (at the GPO) to include both
the computers AND the
> > users? I haven't tried that myself, but with it
you could
> > theoretically create the mapped drive at Startup
and then try and
> > create it again at Logon, resulting in a
combination error and working
> > mapped drive. (?)
> >
> > It is kind of bizarre. =]
> >
> > On Oct 11, 8:42 pm, Drunken Panda <lau.a... gmail.com> wrote:
> >
> > > I am running 2003 STD with AD. Using group
policy I have the
> > > following code to map 2 network drive. The
drives map correctly, but
> > > I still get error 80070055 "The local
device is already in use" I
> > > know for a fact that there are no other
mapped drives. Every
> > > workstation only has C: and D:. This happens
for every workstation
> > > and user.
> >
> > > Option Explicit
> > > Dim objNetwork, strRemotePath1,
strRemotePath2
> > > Dim strDriveLetter1, strDriveLetter2
> > > strDriveLetter1 = "Z:"
> > > strDriveLetter2 = "X:"
> > > strRemotePath1 = "\shaktishared"
> > > strRemotePath2 =
"\shaktisoftware"
> > > Set objNetwork =
CreateObject("WScript.Network")
> > > objNetwork.MapNetworkDrive strDriveLetter1,
strRemotePath1
> > > objNetwork.MapNetworkDrive strDriveLetter2,
strRemotePath2
> > > Wscript.Quit
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Windows 2003" group.
To post to this group, send email to Windows2003 googlegroups.com
To unsubscribe from this group, send email to
Windows2003-unsubscribe googlegroups.com
For more options, visit this group at http
://groups.google.com/group/Windows2003?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Mapping network drive error |
  United States |
2007-10-16 14:47:58 |
objNetwork.RemoveNetworkDrive strDriveLetter1
objNetwork.RemoveNetworkDrive strDriveLetter2
That should do it, if inserted ahead of your
MapNetworkDrive. You
would be treating the symptom though, and not the cause.
On Oct 16, 8:17 am, "Christopher.DeRe... gmail.com"
<Christopher.DeRe... gmail.com> wrote:
> I tired to lookup the VB command to destroy a network
map... but i'm
> to busy today sorry, but my only thought would be to
execute a command
> to destroy anything that might be using that particular
drive letter,
> and then have it be remade.
>
> sort of like a net stop command in a batch file, i know
there's
> something in VB that does it, just couldn't find it in
the first 5
> secs of looking
>
> On Oct 15, 3:06 pm, Justin Brown <jcbr... gmail.com> wrote:
>
>
>
> > That looks exactly like the mapped drive script
I've got on my domain.
> > i.e.:
> > <dim>.MapNetworkDrive <driveletter>,
<path>
>
> > Any chance there is more than one policy that
calls this script for
> > your users? Or, alternatively, is there any chance
you've set the
> > security filtering (at the GPO) to include both
the computers AND the
> > users? I haven't tried that myself, but with it
you could
> > theoretically create the mapped drive at Startup
and then try and
> > create it again at Logon, resulting in a
combination error and working
> > mapped drive. (?)
>
> > It is kind of bizarre. =]
>
> > On Oct 11, 8:42 pm, Drunken Panda <lau.a... gmail.com> wrote:
>
> > > I am running 2003 STD with AD. Using group
policy I have the
> > > following code to map 2 network drive. The
drives map correctly, but
> > > I still get error 80070055 "The local
device is already in use" I
> > > know for a fact that there are no other
mapped drives. Every
> > > workstation only has C: and D:. This happens
for every workstation
> > > and user.
>
> > > Option Explicit
> > > Dim objNetwork, strRemotePath1,
strRemotePath2
> > > Dim strDriveLetter1, strDriveLetter2
> > > strDriveLetter1 = "Z:"
> > > strDriveLetter2 = "X:"
> > > strRemotePath1 = "\shaktishared"
> > > strRemotePath2 =
"\shaktisoftware"
> > > Set objNetwork =
CreateObject("WScript.Network")
> > > objNetwork.MapNetworkDrive strDriveLetter1,
strRemotePath1
> > > objNetwork.MapNetworkDrive strDriveLetter2,
strRemotePath2
> > > Wscript.Quit- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Windows 2003" group.
To post to this group, send email to Windows2003 googlegroups.com
To unsubscribe from this group, send email to
Windows2003-unsubscribe googlegroups.com
For more options, visit this group at http
://groups.google.com/group/Windows2003?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Mapping network drive error |
  United States |
2007-10-16 15:00:37 |
Why not just use a batch file at logon to map drives?
If you give the necessary rights to the folder, then those
that aren't
able to read/write won't be able to map to it and you won't
need
seperate mapping scripts for different OUs ..
net use <letter> <path> /persistent:no
--sean
On Oct 11, 8:42 pm, Drunken Panda <lau.a... gmail.com> wrote:
> I am running 2003 STD with AD. Using group policy I
have the
> following code to map 2 network drive. The drives map
correctly, but
> I still get error 80070055 "The local device is
already in use" I
> know for a fact that there are no other mapped drives.
Every
> workstation only has C: and D:. This happens for every
workstation
> and user.
>
> Option Explicit
> Dim objNetwork, strRemotePath1, strRemotePath2
> Dim strDriveLetter1, strDriveLetter2
> strDriveLetter1 = "Z:"
> strDriveLetter2 = "X:"
> strRemotePath1 = "\shaktishared"
> strRemotePath2 = "\shaktisoftware"
> Set objNetwork =
CreateObject("WScript.Network")
> objNetwork.MapNetworkDrive strDriveLetter1,
strRemotePath1
> objNetwork.MapNetworkDrive strDriveLetter2,
strRemotePath2
> Wscript.Quit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Windows 2003" group.
To post to this group, send email to Windows2003 googlegroups.com
To unsubscribe from this group, send email to
Windows2003-unsubscribe googlegroups.com
For more options, visit this group at http
://groups.google.com/group/Windows2003?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Mapping network drive error |
  United States |
2007-10-17 10:03:26 |
Personally i like to run VBScripts instead of batch, because
even if
you have it set to hide the script running window, it still
shows up
sometimes... which is just ridiculous, vbscripts run
completely in the
background, users unaware of anything happening. Also i've
had the
stupid security warnings come up sometimes when using batch
files for
startup scripts.
To me they just seem sloppy and ancient. I agree they can
be just as
powerful and robust as VBScript, but only when an admin is
using them
directly, i don't think they have a place as startup scripts
anymore.
On Oct 16, 4:00 pm, Sean W <teeth... gmail.com> wrote:
> Why not just use a batch file at logon to map drives?
>
> If you give the necessary rights to the folder, then
those that aren't
> able to read/write won't be able to map to it and you
won't need
> seperate mapping scripts for different OUs ..
>
> net use <letter> <path> /persistent:no
>
> --sean
>
> On Oct 11, 8:42 pm, Drunken Panda <lau.a... gmail.com> wrote:
>
> > I am running 2003 STD with AD. Using group policy
I have the
> > following code to map 2 network drive. The drives
map correctly, but
> > I still get error 80070055 "The local device
is already in use" I
> > know for a fact that there are no other mapped
drives. Every
> > workstation only has C: and D:. This happens for
every workstation
> > and user.
>
> > Option Explicit
> > Dim objNetwork, strRemotePath1, strRemotePath2
> > Dim strDriveLetter1, strDriveLetter2
> > strDriveLetter1 = "Z:"
> > strDriveLetter2 = "X:"
> > strRemotePath1 = "\shaktishared"
> > strRemotePath2 = "\shaktisoftware"
> > Set objNetwork =
CreateObject("WScript.Network")
> > objNetwork.MapNetworkDrive strDriveLetter1,
strRemotePath1
> > objNetwork.MapNetworkDrive strDriveLetter2,
strRemotePath2
> > Wscript.Quit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Windows 2003" group.
To post to this group, send email to Windows2003 googlegroups.com
To unsubscribe from this group, send email to
Windows2003-unsubscribe googlegroups.com
For more options, visit this group at http
://groups.google.com/group/Windows2003?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Mapping network drive error |
  United States |
2007-10-17 13:41:31 |
to each his own....the batch files are smaller in size...it
took 12
lines of code to map a drive and 2 lines of batch
scripting...
if you are only mapping drives, I think a small blip on the
user login
isn't too much of a hassle.
--sean
On Oct 17, 8:03 am, "Christopher.DeRe... gmail.com"
<Christopher.DeRe... gmail.com> wrote:
> Personally i like to run VBScripts instead of batch,
because even if
> you have it set to hide the script running window, it
still shows up
> sometimes... which is just ridiculous, vbscripts run
completely in the
> background, users unaware of anything happening. Also
i've had the
> stupid security warnings come up sometimes when using
batch files for
> startup scripts.
>
> To me they just seem sloppy and ancient. I agree they
can be just as
> powerful and robust as VBScript, but only when an admin
is using them
> directly, i don't think they have a place as startup
scripts anymore.
>
> On Oct 16, 4:00 pm, Sean W <teeth... gmail.com> wrote:
>
> > Why not just use a batch file at logon to map
drives?
>
> > If you give the necessary rights to the folder,
then those that aren't
> > able to read/write won't be able to map to it and
you won't need
> > seperate mapping scripts for different OUs ..
>
> > net use <letter> <path>
/persistent:no
>
> > --sean
>
> > On Oct 11, 8:42 pm, Drunken Panda <lau.a... gmail.com> wrote:
>
> > > I am running 2003 STD with AD. Using group
policy I have the
> > > following code to map 2 network drive. The
drives map correctly, but
> > > I still get error 80070055 "The local
device is already in use" I
> > > know for a fact that there are no other
mapped drives. Every
> > > workstation only has C: and D:. This happens
for every workstation
> > > and user.
>
> > > Option Explicit
> > > Dim objNetwork, strRemotePath1,
strRemotePath2
> > > Dim strDriveLetter1, strDriveLetter2
> > > strDriveLetter1 = "Z:"
> > > strDriveLetter2 = "X:"
> > > strRemotePath1 = "\shaktishared"
> > > strRemotePath2 =
"\shaktisoftware"
> > > Set objNetwork =
CreateObject("WScript.Network")
> > > objNetwork.MapNetworkDrive strDriveLetter1,
strRemotePath1
> > > objNetwork.MapNetworkDrive strDriveLetter2,
strRemotePath2
> > > Wscript.Quit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Windows 2003" group.
To post to this group, send email to Windows2003 googlegroups.com
To unsubscribe from this group, send email to
Windows2003-unsubscribe googlegroups.com
For more options, visit this group at http
://groups.google.com/group/Windows2003?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
[1-9]
|
|