Windows 7 VBS logon script issue “local device already in use”
on March 19th, 2011 at 1:53 amSo your having problems with your VBS logon script mapping drives on your new Windows 7 Business edition workstations that your adding to the domain. Me too! For each drive mapping in the script I’d get the error “local drive already in use”. The first pages I read were saying to just disable UAC (User Access Control). I didn’t feel that was an acceptable solution.
I launch some of my VBS logon scripts from the main script in NETLOGON which is just a CMD script file. There were those that suggested to lunch your VBS scripts from a GPO (Group Policy Object) but even though that maps the drive it still produced the errors.
After some more digging I found a link here at http://windowsconnected.com/blogs/joshs_blog/archive/2007/02/20/windows-vista-tip-enabledlinkedconnections.aspx that has a registry tweak to correct the problem. It worked for me. He gives a brief explanation for why it works as well.
UPDATE (2011-03-29) : Microsoft has a page covering this subject in greater detail at http://support.microsoft.com/kb/937624.
The solution:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
EnableLinkedConnections = 1 (DWord)
If you want to run it in a reg file copy this into a reg file and run it.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
“EnableLinkedConnections”=dword:00000001
Or download it. EnableLinkedConnections.reg