- How can I share my laptop on my network and not on another network
- Posted by see.cher@your.place on November 9th, 2005
I want to be able to share all my laptop when connected to my home
network but not share when it is connected to another network.
How can I configure this to work automatically, without resetting the
share each time?
thanks
- Posted by Chuck on November 9th, 2005
On Wed, 09 Nov 2005 04:20:44 GMT, see.cher@your.place wrote:
>I want to be able to share all my laptop when connected to my home
>network but not share when it is connected to another network.
>
>How can I configure this to work automatically, without resetting the
>share each time?
>
>thanks
There are 3 configuration managers that should help you do that. I enumerate
them in my article.
<http://nitecruzr.blogspot.com/2005/05/have-laptop-will-travel.html#ComplexSolutions>
http://nitecruzr.blogspot.com/2005/0...mplexSolutions
--
Cheers,
Chuck, MS-MVP [Windows - Networking]
http://nitecruzr.blogspot.com/
Paranoia is not a problem, when it's a normal response from experience.
My email is AT DOT
actual address pchuck mvps org.
- Posted by see.cher@your.place on November 10th, 2005
Thanks, but all that seems to only address getting on to a network.
I don't have that problem (yet). I can go from home (wireless) to the
office (wired) and everything works just fine.
This issue is that I only want to share one folder at the office and
the whole drive C: & D: at home.
Nothing in any description talks about shares.
Did I miss something?
On Tue, 08 Nov 2005 20:43:44 -0800, Chuck <none@example.net> wrote:
>On Wed, 09 Nov 2005 04:20:44 GMT, see.cher@your.place wrote:
>
>>I want to be able to share all my laptop when connected to my home
>>network but not share when it is connected to another network.
>>
>>How can I configure this to work automatically, without resetting the
>>share each time?
>>
>>thanks
>
>There are 3 configuration managers that should help you do that. I enumerate
>them in my article.
><http://nitecruzr.blogspot.com/2005/05/have-laptop-will-travel.html#ComplexSolutions>
>http://nitecruzr.blogspot.com/2005/0...mplexSolutions
- Posted by Chuck on November 10th, 2005
On Thu, 10 Nov 2005 04:30:09 GMT, see.cher@your.place wrote:
>On Tue, 08 Nov 2005 20:43:44 -0800, Chuck <none@example.net> wrote:
>
>>On Wed, 09 Nov 2005 04:20:44 GMT, see.cher@your.place wrote:
>>
>>>I want to be able to share all my laptop when connected to my home
>>>network but not share when it is connected to another network.
>>>
>>>How can I configure this to work automatically, without resetting the
>>>share each time?
>>>
>>>thanks
>>
>>There are 3 configuration managers that should help you do that. I enumerate
>>them in my article.
>><http://nitecruzr.blogspot.com/2005/05/have-laptop-will-travel.html#ComplexSolutions>
>>http://nitecruzr.blogspot.com/2005/0...mplexSolutions
>Thanks, but all that seems to only address getting on to a network.
>
>I don't have that problem (yet). I can go from home (wireless) to the
>office (wired) and everything works just fine.
>This issue is that I only want to share one folder at the office and
>the whole drive C: & D: at home.
>
>Nothing in any description talks about shares.
>
>Did I miss something?
Well, the "net share" command, properly scripted, will automate the process of
turning each share on or off, as desired. You could have 2 scripts, one running
a pair of net share commands to setup for office use, the other for home use.
Office.cmd
net share OfficeShare=C:\OfficeFolder
Net share HomeShareC /delete
Net share HomeShareD /delete
Home.cmd
net share OfficeShare /delete
Net share HomeShareC=C:\
Net share HomeShareD=D:\
To make the scripts execute automatically, you would then invoke the proper
script from an appropriate configuration as provided by one of the configuration
managers.
Nothing too complex.
--
Cheers,
Chuck, MS-MVP [Windows - Networking]
http://nitecruzr.blogspot.com/
Paranoia is not a problem, when it's a normal response from experience.
My email is AT DOT
actual address pchuck mvps org.
- Posted by see.cher@your.place on November 11th, 2005
Thanks
I put NET SHARE into two BAT files so all I have to do it double click
one to change it - that works ALMOST.
If I share using the std process and allow network users to change my
files, I can read and write to my profile folders like MY DOCUMENTS,
etc. With the NET SHARE method I can't do that - or do I need a switch
in the command line for that???
On Wed, 09 Nov 2005 20:50:08 -0800, Chuck <none@example.net> wrote:
>On Thu, 10 Nov 2005 04:30:09 GMT, see.cher@your.place wrote:
>
>>On Tue, 08 Nov 2005 20:43:44 -0800, Chuck <none@example.net> wrote:
>>
>>>On Wed, 09 Nov 2005 04:20:44 GMT, see.cher@your.place wrote:
>>>
>>>>I want to be able to share all my laptop when connected to my home
>>>>network but not share when it is connected to another network.
>>>>
>>>>How can I configure this to work automatically, without resetting the
>>>>share each time?
>>>>
>>>>thanks
>>>
>>>There are 3 configuration managers that should help you do that. I enumerate
>>>them in my article.
>>><http://nitecruzr.blogspot.com/2005/05/have-laptop-will-travel.html#ComplexSolutions>
>>>http://nitecruzr.blogspot.com/2005/0...mplexSolutions
>
>>Thanks, but all that seems to only address getting on to a network.
>>
>>I don't have that problem (yet). I can go from home (wireless) to the
>>office (wired) and everything works just fine.
>>This issue is that I only want to share one folder at the office and
>>the whole drive C: & D: at home.
>>
>>Nothing in any description talks about shares.
>>
>>Did I miss something?
>
>Well, the "net share" command, properly scripted, will automate the process of
>turning each share on or off, as desired. You could have 2 scripts, one running
>a pair of net share commands to setup for office use, the other for home use.
>Office.cmd
>net share OfficeShare=C:\OfficeFolder
>Net share HomeShareC /delete
>Net share HomeShareD /delete
>Home.cmd
>net share OfficeShare /delete
>Net share HomeShareC=C:\
>Net share HomeShareD=D:\
>
>To make the scripts execute automatically, you would then invoke the proper
>script from an appropriate configuration as provided by one of the configuration
>managers.
>
>Nothing too complex.
- Posted by Chuck on November 11th, 2005
On Fri, 11 Nov 2005 03:26:16 GMT, see.cher@your.place wrote:
>On Wed, 09 Nov 2005 20:50:08 -0800, Chuck <none@example.net> wrote:
>
>>On Thu, 10 Nov 2005 04:30:09 GMT, see.cher@your.place wrote:
>>
>>>On Tue, 08 Nov 2005 20:43:44 -0800, Chuck <none@example.net> wrote:
>>>
>>>>On Wed, 09 Nov 2005 04:20:44 GMT, see.cher@your.place wrote:
>>>>
>>>>>I want to be able to share all my laptop when connected to my home
>>>>>network but not share when it is connected to another network.
>>>>>
>>>>>How can I configure this to work automatically, without resetting the
>>>>>share each time?
>>>>>
>>>>>thanks
>>>>
>>>>There are 3 configuration managers that should help you do that. I enumerate
>>>>them in my article.
>>>><http://nitecruzr.blogspot.com/2005/05/have-laptop-will-travel.html#ComplexSolutions>
>>>>http://nitecruzr.blogspot.com/2005/0...mplexSolutions
>>
>>>Thanks, but all that seems to only address getting on to a network.
>>>
>>>I don't have that problem (yet). I can go from home (wireless) to the
>>>office (wired) and everything works just fine.
>>>This issue is that I only want to share one folder at the office and
>>>the whole drive C: & D: at home.
>>>
>>>Nothing in any description talks about shares.
>>>
>>>Did I miss something?
>>
>>Well, the "net share" command, properly scripted, will automate the process of
>>turning each share on or off, as desired. You could have 2 scripts, one running
>>a pair of net share commands to setup for office use, the other for home use.
>>Office.cmd
>>net share OfficeShare=C:\OfficeFolder
>>Net share HomeShareC /delete
>>Net share HomeShareD /delete
>>Home.cmd
>>net share OfficeShare /delete
>>Net share HomeShareC=C:\
>>Net share HomeShareD=D:\
>>
>>To make the scripts execute automatically, you would then invoke the proper
>>script from an appropriate configuration as provided by one of the configuration
>>managers.
>>
>>Nothing too complex.
>Thanks
>
>I put NET SHARE into two BAT files so all I have to do it double click
>one to change it - that works ALMOST.
>
>If I share using the std process and allow network users to change my
>files, I can read and write to my profile folders like MY DOCUMENTS,
>etc. With the NET SHARE method I can't do that - or do I need a switch
>in the command line for that???
The "My Documents" branch is accessible only to the owner, or administrator,
unless you indicate otherwise. If the computer is running anything but XP Pro
with Classic File Sharing, that's going to be a problem.
<http://nitecruzr.blogspot.com/2005/06/file-sharing-under-windows-xp.html#Guest>
http://nitecruzr.blogspot.com/2005/0...-xp.html#Guest
You CAN modify permissions using cacls, and you can script that too.
<http://nitecruzr.blogspot.com/2005/09/server-access-authorisation.html>
http://nitecruzr.blogspot.com/2005/0...orisation.html
--
Cheers,
Chuck, MS-MVP [Windows - Networking]
http://nitecruzr.blogspot.com/
Paranoia is not a problem, when it's a normal response from experience.
My email is AT DOT
actual address pchuck mvps org.