Windows Network Drives not Automounting

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Stark
Emperor's Hand
Posts: 36169
Joined: 2002-07-03 09:56pm
Location: Brisbane, Australia

Windows Network Drives not Automounting

Post by Stark »

Every time I reinstall my system and recreate the SMB drives I use to access my fileserver everything works fine. However, after a few months (it's five months now) it STOPS working. For instance, if I boot then open iTunes, it has a shit and says it can't find the z:/music directory. My frame-of-porn widget fails to start for the same reason. Mail fails.

As soon as I use windows explorer to follow the network drive link (ie, start-mycomp-z: ) everything works fine. I don't have to hit ips, or nav through the network/workgroup. Why the fuck does it stop working automatically?

Could it be something about my server? The OSX systems on my network ALSO don't automount the network share, even though its in the list of boot thingies. If I appleK it manually, it works fine.
User avatar
Xon
Sith Acolyte
Posts: 6206
Joined: 2002-07-16 06:12am
Location: Western Australia

Post by Xon »

Create a new textfile, and name it "mapdrives.vbs"

Code: Select all

On Error resume next

Set oNet = CreateObject("WScript.Network")

oNet.RemoveNetworkDrive "x:", "True", "True"

oNet.MapNetworkDrive "x:", "\\server\share", "True", "domain\user", "password"
Add a RemoveNetworkDrive and a MapNetworkDrive for each drive.

Put this in your profile's startup folder in the start menu. Enjoy .
"Okay, I'll have the truth with a side order of clarity." ~ Dr. Daniel Jackson.
"Reality has a well-known liberal bias." ~ Stephen Colbert
"One Drive, One Partition, the One True Path" ~ ars technica forums - warrens - on hhd partitioning schemes.
User avatar
Stark
Emperor's Hand
Posts: 36169
Joined: 2002-07-03 09:56pm
Location: Brisbane, Australia

Post by Stark »

Neat. I'd still like to know why it magically stops working, and why I need to brute force something so simple. Bah! :)
Post Reply