How can I share my laptop on my network and not on another network

How can I share my laptop on my network and not on another network

Post by see.che » Thu, 10 Nov 2005 13:20:44


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
 
 
 

How can I share my laptop on my network and not on another network

Post by Chuc » Thu, 10 Nov 2005 13:43:44


There are 3 configuration managers that should help you do that. I enumerate
them in my article.
< http://www.yqcomputer.com/ #ComplexSolutions>
http://www.yqcomputer.com/ #ComplexSolutions

--
Cheers,
Chuck, MS-MVP [Windows - Networking]
http://www.yqcomputer.com/
Paranoia is not a problem, when it's a normal response from experience.
My email is AT DOT
actual address pchuck mvps org.

 
 
 

How can I share my laptop on my network and not on another network

Post by see.che » Fri, 11 Nov 2005 13:30:09

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?
 
 
 

How can I share my laptop on my network and not on another network

Post by Chuc » Fri, 11 Nov 2005 13:50:08


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://www.yqcomputer.com/
Paranoia is not a problem, when it's a normal response from experience.
My email is AT DOT
actual address pchuck mvps org.
 
 
 

How can I share my laptop on my network and not on another network

Post by see.che » Sat, 12 Nov 2005 12:26:16

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???
 
 
 

How can I share my laptop on my network and not on another network

Post by Chuc » Sat, 12 Nov 2005 13:24:33

n Fri, 11 Nov 2005 03:26:16 GMT, XXXX@XXXXX.COM wrote:



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/06/file-sharing-under-windows-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/09/server-access-authorisation.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.