Win7 Disconnected Network Drives that work but noway of disconnecting the mapping and more
Team.
Got our first HP 8440P Win7 machine last week, started playin with logon scripts today
Firstly I had to run the reg hack
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\SystemEnableLinkedConnections = 1 (DWord)
Option Explicit
Dim objNetwork, strRemotePath1, strRemotePath2
Dim strDriveLetter1, strDriveLetter2
strDriveLetter1 = "G:"
strDriveLetter2 = "I:"
strRemotePath1 = "\\melfps01.DOMAINNAME.COM.AU\stuff"
strRemotePath2 = "\\melfps01.DOMAINNAME.COM.AU\it"
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1
objNetwork.MapNetworkDrive strDriveLetter2, strRemotePath2
Now that they are mapping and working, if I run from a dos prompt “net use” it shows no mapped drives at all.
Yet under 'Computer', I can see them all, but they show as Disconnected Network Drive – but they all work. If I access the drive and some folders to test it, then go
back to the root of that mapped drive after accessing the folders, it still shows as Disconnected Network Drive?
Strange? or Normal Win7?
If I map a drive EG: net use z:
\\smelfps01\test It maps, it shows up as connected, and it shows up if I run a net use :( I can also Disconnect it.
Sounds similar to this one -> http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/thread/60741f01-bfa1-4f38-b63c-3a1e85c602c0
reading it, it says “Look for a registry entry for the mapping under
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2]”
I've gone there and the only mapped drive I can see is the Z Drive I mapped manually with 'net use'.
The test user has local admin rights, the workstation is in the test OU with the script.
Anyone got a solution to this PITA problem? It is not much, but once I roll out Win7 I’ll get 29802398402398 calls from users once they
see that the drives are disconnected
Thanks
Bruce
Then hit it with a Very Basic Test Script..
December 19th, 2010 11:02pm