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.
net share OfficeShare=C:\OfficeFolder
Net share HomeShareC /delete
Net share HomeShareD /delete
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
Nothing too complex.
Chuck, MS-MVP [Windows - Networking]
Paranoia is not a problem, when it's a normal response from experience.
My email is AT DOT
actual address pchuck mvps org.