A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Security and Administration with Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Why can I map a local drive if I'm connected to the network but can't if not?



 
 
Thread Tools Display Modes
  #1  
Old October 30th 09, 04:52 PM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.security_admin,microsoft.public.windowsxp.work_remotely
Kelvin[_5_]
external usenet poster
 
Posts: 45
Default Why can I map a local drive if I'm connected to the network but can't if not?

I need to map a drive to a local share for users that are off the network.
net use p: \\ComputerName\ShareName

I can map this if the user is connected to the network, but if I unplug the
laptop, I get this error "system error 1231 has occurred. the network
location cannot be reached".

What do I need to do to be able to map this drive when the user is off the
network?

Any help would be appreciated!

Kelvin


Ads
  #2  
Old October 30th 09, 05:11 PM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.security_admin,microsoft.public.windowsxp.work_remotely
Terry R.[_2_]
external usenet poster
 
Posts: 1,746
Default Why can I map a local drive if I'm connected to the network butcan't if not?

On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard

I need to map a drive to a local share for users that are off the network.
net use p: \\ComputerName\ShareName

I can map this if the user is connected to the network, but if I unplug the
laptop, I get this error "system error 1231 has occurred. the network
location cannot be reached".

What do I need to do to be able to map this drive when the user is off the
network?

Any help would be appreciated!

Kelvin



Hi Kelvin,

You have to be connected and able to access the drive to map it.

So use a batch file to test for the existence of the drive and proceed
to map if it exists and exit without attempting if it doesn't. Then you
won't get any error messages.


Terry R.
--
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
  #3  
Old October 30th 09, 05:22 PM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.security_admin,microsoft.public.windowsxp.work_remotely
Kelvin[_5_]
external usenet poster
 
Posts: 45
Default Why can I map a local drive if I'm connected to the network but can't if not?

Sorry, not sure I follow.

With the eithernet cable attached to the laptop I can map the cable fine.
Without doing anything else, if I just pull the plug from the laptop, the
drive becomes unavailable.
"P: is not accessible" is the error when I click on the drive.
I plug the cable back in, wait a few second and the drive is there
(accessible) again.

I'm thinking there's a service or something that needs to be installed for
this to work when it's off the network...

I've run GPUpdate thinking there was a rights issue. But it does it with me
logged in as a Domain Admin as well as the user who I gave Power User rights
to...

I spend 99% of my time in a Doamin emvironment so am thinking this is sort
of a workgroup type issue...

I will incorporate this when I can get the drive to be accessible with the
cable unblugged...
I do have the net use command in a bat file, but am not testing if the drive
exists...

Kelvin

"Terry R." wrote in message
...
On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard

I need to map a drive to a local share for users that are off the
network.
net use p: \\ComputerName\ShareName

I can map this if the user is connected to the network, but if I unplug
the
laptop, I get this error "system error 1231 has occurred. the network
location cannot be reached".

What do I need to do to be able to map this drive when the user is off
the
network?

Any help would be appreciated!

Kelvin



Hi Kelvin,

You have to be connected and able to access the drive to map it.

So use a batch file to test for the existence of the drive and proceed to
map if it exists and exit without attempting if it doesn't. Then you
won't get any error messages.


Terry R.
--
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.



  #4  
Old October 30th 09, 05:45 PM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.security_admin,microsoft.public.windowsxp.work_remotely
David B.[_2_]
external usenet poster
 
Posts: 1,244
Default Why can I map a local drive if I'm connected to the network but can't if not?

So your trying to access a network share when your not connected to the
network? Think about that for a moment...

--


--
"Kelvin" wrote in message
...
Sorry, not sure I follow.

With the eithernet cable attached to the laptop I can map the cable fine.
Without doing anything else, if I just pull the plug from the laptop, the
drive becomes unavailable.
"P: is not accessible" is the error when I click on the drive.
I plug the cable back in, wait a few second and the drive is there
(accessible) again.

I'm thinking there's a service or something that needs to be installed for
this to work when it's off the network...

I've run GPUpdate thinking there was a rights issue. But it does it with
me logged in as a Domain Admin as well as the user who I gave Power User
rights to...

I spend 99% of my time in a Doamin emvironment so am thinking this is sort
of a workgroup type issue...

I will incorporate this when I can get the drive to be accessible with the
cable unblugged...
I do have the net use command in a bat file, but am not testing if the
drive exists...

Kelvin

"Terry R." wrote in message
...
On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard

I need to map a drive to a local share for users that are off the
network.
net use p: \\ComputerName\ShareName

I can map this if the user is connected to the network, but if I unplug
the
laptop, I get this error "system error 1231 has occurred. the network
location cannot be reached".

What do I need to do to be able to map this drive when the user is off
the
network?

Any help would be appreciated!

Kelvin



Hi Kelvin,

You have to be connected and able to access the drive to map it.

So use a batch file to test for the existence of the drive and proceed to
map if it exists and exit without attempting if it doesn't. Then you
won't get any error messages.


Terry R.
--
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.




  #5  
Old October 30th 09, 07:08 PM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.security_admin,microsoft.public.windowsxp.work_remotely
John John - MVP
external usenet poster
 
Posts: 780
Default Why can I map a local drive if I'm connected to the network butcan't if not?

That's like pulling the cable wire out of the TV and then wondering why
it is that you can't receive any cable channels...

John

Kelvin wrote:
Sorry, not sure I follow.

With the eithernet cable attached to the laptop I can map the cable fine.
Without doing anything else, if I just pull the plug from the laptop, the
drive becomes unavailable.
"P: is not accessible" is the error when I click on the drive.
I plug the cable back in, wait a few second and the drive is there
(accessible) again.

I'm thinking there's a service or something that needs to be installed for
this to work when it's off the network...

I've run GPUpdate thinking there was a rights issue. But it does it with me
logged in as a Domain Admin as well as the user who I gave Power User rights
to...

I spend 99% of my time in a Doamin emvironment so am thinking this is sort
of a workgroup type issue...

I will incorporate this when I can get the drive to be accessible with the
cable unblugged...
I do have the net use command in a bat file, but am not testing if the drive
exists...

Kelvin

"Terry R." wrote in message
...
On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard

I need to map a drive to a local share for users that are off the
network.
net use p: \\ComputerName\ShareName

I can map this if the user is connected to the network, but if I unplug
the
laptop, I get this error "system error 1231 has occurred. the network
location cannot be reached".

What do I need to do to be able to map this drive when the user is off
the
network?

Any help would be appreciated!

Kelvin


Hi Kelvin,

You have to be connected and able to access the drive to map it.

So use a batch file to test for the existence of the drive and proceed to
map if it exists and exit without attempting if it doesn't. Then you
won't get any error messages.


Terry R.
--
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.



  #6  
Old October 30th 09, 07:12 PM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.security_admin,microsoft.public.windowsxp.work_remotely
Kelvin[_5_]
external usenet poster
 
Posts: 45
Default Why can I map a local drive if I'm connected to the network but can't if not?

No, I'm mapping the drive the the local computer, that has a shared folder..

I have an application that when the users are on the network have a "P:"
drive.
When their off the network I still need them to have a "P:" drive.
\\fileservername\sharename\programfolder
\\laptopname\sharename\programfolder

Kelvin


"David B." wrote in message
...
So your trying to access a network share when your not connected to the
network? Think about that for a moment...

--


--
"Kelvin" wrote in message
...
Sorry, not sure I follow.

With the eithernet cable attached to the laptop I can map the cable fine.
Without doing anything else, if I just pull the plug from the laptop, the
drive becomes unavailable.
"P: is not accessible" is the error when I click on the drive.
I plug the cable back in, wait a few second and the drive is there
(accessible) again.

I'm thinking there's a service or something that needs to be installed
for this to work when it's off the network...

I've run GPUpdate thinking there was a rights issue. But it does it with
me logged in as a Domain Admin as well as the user who I gave Power User
rights to...

I spend 99% of my time in a Doamin emvironment so am thinking this is
sort of a workgroup type issue...

I will incorporate this when I can get the drive to be accessible with
the cable unblugged...
I do have the net use command in a bat file, but am not testing if the
drive exists...

Kelvin

"Terry R." wrote in message
...
On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard

I need to map a drive to a local share for users that are off the
network.
net use p: \\ComputerName\ShareName

I can map this if the user is connected to the network, but if I unplug
the
laptop, I get this error "system error 1231 has occurred. the network
location cannot be reached".

What do I need to do to be able to map this drive when the user is off
the
network?

Any help would be appreciated!

Kelvin



Hi Kelvin,

You have to be connected and able to access the drive to map it.

So use a batch file to test for the existence of the drive and proceed
to map if it exists and exit without attempting if it doesn't. Then you
won't get any error messages.


Terry R.
--
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.






  #7  
Old October 30th 09, 07:14 PM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.security_admin,microsoft.public.windowsxp.work_remotely
3c273
external usenet poster
 
Posts: 424
Default Why can I map a local drive if I'm connected to the network but can't if not?

If the drive you are trying to map is on the same machine, use the subst
command instead.
subst p: c:\path_to_local_share
Louis

"Kelvin" wrote in message
...
I need to map a drive to a local share for users that are off the network.
net use p: \\ComputerName\ShareName

I can map this if the user is connected to the network, but if I unplug

the
laptop, I get this error "system error 1231 has occurred. the network
location cannot be reached".

What do I need to do to be able to map this drive when the user is off the
network?

Any help would be appreciated!

Kelvin




  #8  
Old October 30th 09, 07:35 PM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.security_admin,microsoft.public.windowsxp.work_remotely
amdrit
external usenet poster
 
Posts: 6
Default Why can I map a local drive if I'm connected to the network but can't if not?

Subst is the command you want to use when mapping locally. Mapping drives
as you propose, you are really using the net.exe to do so, it is attempting
to get your loopback address (127.0.0.1) and since you are not plugged in
your loopback doesn't exist.


"3c273" wrote in message
...
If the drive you are trying to map is on the same machine, use the subst
command instead.
subst p: c:\path_to_local_share
Louis

"Kelvin" wrote in message
...
I need to map a drive to a local share for users that are off the
network.
net use p: \\ComputerName\ShareName

I can map this if the user is connected to the network, but if I unplug

the
laptop, I get this error "system error 1231 has occurred. the network
location cannot be reached".

What do I need to do to be able to map this drive when the user is off
the
network?

Any help would be appreciated!

Kelvin






  #9  
Old October 30th 09, 07:38 PM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.security_admin,microsoft.public.windowsxp.work_remotely
amdrit
external usenet poster
 
Posts: 6
Default Why can I map a local drive if I'm connected to the network but can't if not?

That is just a silly response. If he were trying to connect to an external
resource, your barb would apply. He is connecting locally and essentially
didn't realize the mechanics of net use commands or that subst would be the
viable option for local resources.


"John John - MVP" wrote in message
...
That's like pulling the cable wire out of the TV and then wondering why it
is that you can't receive any cable channels...

John

Kelvin wrote:
Sorry, not sure I follow.

With the eithernet cable attached to the laptop I can map the cable fine.
Without doing anything else, if I just pull the plug from the laptop, the
drive becomes unavailable.
"P: is not accessible" is the error when I click on the drive.
I plug the cable back in, wait a few second and the drive is there
(accessible) again.

I'm thinking there's a service or something that needs to be installed
for this to work when it's off the network...

I've run GPUpdate thinking there was a rights issue. But it does it with
me logged in as a Domain Admin as well as the user who I gave Power User
rights to...

I spend 99% of my time in a Doamin emvironment so am thinking this is
sort of a workgroup type issue...

I will incorporate this when I can get the drive to be accessible with
the cable unblugged...
I do have the net use command in a bat file, but am not testing if the
drive exists...

Kelvin

"Terry R." wrote in message
...
On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard

I need to map a drive to a local share for users that are off the
network.
net use p: \\ComputerName\ShareName

I can map this if the user is connected to the network, but if I unplug
the
laptop, I get this error "system error 1231 has occurred. the network
location cannot be reached".

What do I need to do to be able to map this drive when the user is off
the
network?

Any help would be appreciated!

Kelvin


Hi Kelvin,

You have to be connected and able to access the drive to map it.

So use a batch file to test for the existence of the drive and proceed
to map if it exists and exit without attempting if it doesn't. Then you
won't get any error messages.


Terry R.
--
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.



  #10  
Old October 30th 09, 07:56 PM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.security_admin,microsoft.public.windowsxp.work_remotely
Kelvin[_5_]
external usenet poster
 
Posts: 45
Default Why can I map a local drive if I'm connected to the network but can't if not?

Thanks to those that sugested the subst command, that is the answer I was
looking for!

Thanks!

Kelvin


"amdrit" wrote in message
...
Subst is the command you want to use when mapping locally. Mapping drives
as you propose, you are really using the net.exe to do so, it is
attempting to get your loopback address (127.0.0.1) and since you are not
plugged in your loopback doesn't exist.


"3c273" wrote in message
...
If the drive you are trying to map is on the same machine, use the subst
command instead.
subst p: c:\path_to_local_share
Louis

"Kelvin" wrote in message
...
I need to map a drive to a local share for users that are off the
network.
net use p: \\ComputerName\ShareName

I can map this if the user is connected to the network, but if I unplug

the
laptop, I get this error "system error 1231 has occurred. the network
location cannot be reached".

What do I need to do to be able to map this drive when the user is off
the
network?

Any help would be appreciated!

Kelvin








  #11  
Old October 30th 09, 09:04 PM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.security_admin,microsoft.public.windowsxp.work_remotely
John John - MVP[_2_]
external usenet poster
 
Posts: 1,637
Default Why can I map a local drive if I'm connected to the network butcan't if not?

Given his explanation the response was to be expected:

"With the eithernet cable attached to the laptop I can map the cable
fine. Without doing anything else, if I just pull the plug from the
laptop, the drive becomes unavailable."

Louis had the answer, his crystal ball is clearer than mine today...

John

amdrit wrote:
That is just a silly response. If he were trying to connect to an external
resource, your barb would apply. He is connecting locally and essentially
didn't realize the mechanics of net use commands or that subst would be the
viable option for local resources.


"John John - MVP" wrote in message
...
That's like pulling the cable wire out of the TV and then wondering why it
is that you can't receive any cable channels...

John

Kelvin wrote:
Sorry, not sure I follow.

With the eithernet cable attached to the laptop I can map the cable fine.
Without doing anything else, if I just pull the plug from the laptop, the
drive becomes unavailable.
"P: is not accessible" is the error when I click on the drive.
I plug the cable back in, wait a few second and the drive is there
(accessible) again.

I'm thinking there's a service or something that needs to be installed
for this to work when it's off the network...

I've run GPUpdate thinking there was a rights issue. But it does it with
me logged in as a Domain Admin as well as the user who I gave Power User
rights to...

I spend 99% of my time in a Doamin emvironment so am thinking this is
sort of a workgroup type issue...

I will incorporate this when I can get the drive to be accessible with
the cable unblugged...
I do have the net use command in a bat file, but am not testing if the
drive exists...

Kelvin

"Terry R." wrote in message
...
On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard

I need to map a drive to a local share for users that are off the
network.
net use p: \\ComputerName\ShareName

I can map this if the user is connected to the network, but if I unplug
the
laptop, I get this error "system error 1231 has occurred. the network
location cannot be reached".

What do I need to do to be able to map this drive when the user is off
the
network?

Any help would be appreciated!

Kelvin


Hi Kelvin,

You have to be connected and able to access the drive to map it.

So use a batch file to test for the existence of the drive and proceed
to map if it exists and exit without attempting if it doesn't. Then you
won't get any error messages.


Terry R.
--
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.


  #12  
Old October 30th 09, 10:34 PM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.security_admin,microsoft.public.windowsxp.work_remotely
LVTravel
external usenet poster
 
Posts: 669
Default Why can I map a local drive if I'm connected to the network but can't if not?



"Kelvin" wrote in message
...
No, I'm mapping the drive the the local computer, that has a shared
folder..

I have an application that when the users are on the network have a "P:"
drive.
When their off the network I still need them to have a "P:" drive.
\\fileservername\sharename\programfolder
\\laptopname\sharename\programfolder

Kelvin


"David B." wrote in message
...
So your trying to access a network share when your not connected to the
network? Think about that for a moment...

--


--
"Kelvin" wrote in message
...
Sorry, not sure I follow.

With the eithernet cable attached to the laptop I can map the cable
fine.
Without doing anything else, if I just pull the plug from the laptop,
the drive becomes unavailable.
"P: is not accessible" is the error when I click on the drive.
I plug the cable back in, wait a few second and the drive is there
(accessible) again.

I'm thinking there's a service or something that needs to be installed
for this to work when it's off the network...

I've run GPUpdate thinking there was a rights issue. But it does it with
me logged in as a Domain Admin as well as the user who I gave Power User
rights to...

I spend 99% of my time in a Doamin emvironment so am thinking this is
sort of a workgroup type issue...

I will incorporate this when I can get the drive to be accessible with
the cable unblugged...
I do have the net use command in a bat file, but am not testing if the
drive exists...

Kelvin

"Terry R." wrote in message
...
On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard

I need to map a drive to a local share for users that are off the
network.
net use p: \\ComputerName\ShareName

I can map this if the user is connected to the network, but if I
unplug the
laptop, I get this error "system error 1231 has occurred. the network
location cannot be reached".

What do I need to do to be able to map this drive when the user is off
the
network?

Any help would be appreciated!

Kelvin



Hi Kelvin,

You have to be connected and able to access the drive to map it.

So use a batch file to test for the existence of the drive and proceed
to map if it exists and exit without attempting if it doesn't. Then
you won't get any error messages.


Terry R.
--
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.






Create three batch files and place them on the desktop or a shortcut to them
on the quick launch toolbar, one for on network and two for off network.

On network would be:

net use p: \\ComputerName\ShareName /persistent:no

They run this batch file when on the network. The /persistent:no will
un-map the drive when the computer is turned off to enable the off-network
batch file to run OK.


Off network use the Subst command.

To create the drive letter run this command in the batch file and place the
path in the command that the program needs to look at.

SUBST P: C:\path_for_substitute_data_folder

Before shutting down run this batch file to allow the P drive to be
"unattached" to enable the net use command to be used later.

SUBST P: /D


  #13  
Old October 31st 09, 12:48 AM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.security_admin,microsoft.public.windowsxp.work_remotely
Bruce Chambers
external usenet poster
 
Posts: 6,208
Default Why can I map a local drive if I'm connected to the network butcan't if not?

Kelvin wrote:
Sorry, not sure I follow.

With the eithernet cable attached to the laptop I can map the cable fine.
Without doing anything else, if I just pull the plug from the laptop, the
drive becomes unavailable.
"P: is not accessible" is the error when I click on the drive.
I plug the cable back in, wait a few second and the drive is there
(accessible) again.


All perfectly normal.


I'm thinking there's a service or something that needs to be installed for
this to work when it's off the network...



It CAN'T work when it's 'off the network." I don't even understand how
you could possibly expect to connect to a network share if the computer
isn't connected. The very concept makes no sense.




--

Bruce Chambers

Help us help you:
http://www.catb.org/~esr/faqs/smart-questions.html

http://support.microsoft.com/default.aspx/kb/555375

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin

Many people would rather die than think; in fact, most do. ~Bertrand Russell

The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot
  #14  
Old October 31st 09, 12:50 AM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.security_admin,microsoft.public.windowsxp.work_remotely
Bruce Chambers
external usenet poster
 
Posts: 6,208
Default Why can I map a local drive if I'm connected to the network butcan't if not?

amdrit wrote:
That is just a silly response. If he were trying to connect to an external
resource, your barb would apply.


No, it's still apt.

He is connecting locally...



No, he's not even trying to connect locally if he's using a Net command.





--

Bruce Chambers

Help us help you:
http://www.catb.org/~esr/faqs/smart-questions.html

http://support.microsoft.com/default.aspx/kb/555375

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin

Many people would rather die than think; in fact, most do. ~Bertrand Russell

The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot
  #15  
Old November 2nd 09, 12:10 PM posted to microsoft.public.windowsxp.general,microsoft.public.windowsxp.security_admin,microsoft.public.windowsxp.work_remotely
Christian Schaeffler
external usenet poster
 
Posts: 2
Default Why can I map a local drive if I'm connected to the network but can't if not?

One more thing:
Just make sure your network card is not deactivated when you unplug the
cable... then u can use net use instead of subst

"Kelvin" schrieb im Newsbeitrag
...
Thanks to those that sugested the subst command, that is the answer I was
looking for!

Thanks!

Kelvin


"amdrit" wrote in message
...
Subst is the command you want to use when mapping locally. Mapping
drives as you propose, you are really using the net.exe to do so, it is
attempting to get your loopback address (127.0.0.1) and since you are not
plugged in your loopback doesn't exist.


"3c273" wrote in message
...
If the drive you are trying to map is on the same machine, use the subst
command instead.
subst p: c:\path_to_local_share
Louis

"Kelvin" wrote in message
...
I need to map a drive to a local share for users that are off the
network.
net use p: \\ComputerName\ShareName

I can map this if the user is connected to the network, but if I unplug
the
laptop, I get this error "system error 1231 has occurred. the network
location cannot be reached".

What do I need to do to be able to map this drive when the user is off
the
network?

Any help would be appreciated!

Kelvin










 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 01:43 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.