Mapped Network Drive Timeout

mappeddrivenetwork-sharenetworking

I have two networks: work and home. The work subnet is 192.168.0.x whereas home's subnet is 192.168.1.x

At work I have two mapped drives but at home I don't have either. Any time I open explorer at home or mistakenly hover a file over those drives, windows hangs whilst attempting to connect to the drive. I'm currently using a script which decides whether or not to remove/map the drives based on whether or not 192.168.0.1 can be pinged (work router). The problem is that for some reason based on the event trigger of "connecting/disconnecting to/from a network" multiple instances get run at once and just hang there.

All things considered I'd like a more elegant solution. Is there not a way of changing the timeout for mapped drives? Is it possible to have a 'set configuration' in windows where that configuration has permanently mapped network drives and another configuration doesn't have them at all; something like a 'hardware profile'? I also have other programs I'd like to turn on/off based on my network location.

Best Answer

I don't know about a "hardware profile" but we have shared network drives that are accessible anywhere via OpenVPN. If you have any control over your work's firewall, it seems like that would be the route to go.

Cheers