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. My attempt at alogon script (taken from http://www.computerperformance.co.uk/Logon/logon_mapnetworkdrive_multiple.htm and butchered to test) – noting i know very very little VB but can usually fumble around to make stuff work. 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 Firstly I had to run the reg hack mentioned here to get the drives to map on logon http://windowsconnected.com/blogs/joshs_blog/archive/2007/02/20/windows-vista-tip-enabledlinkedconnections.aspx 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? 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
December 19th, 2010 11:01pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics