Login Script Issue With Windows 7 & Vista
I discovered recently on a network with a mixed bunch of Windows clients that some weren’t mapping the network drives after login.
It quickly became apperant that the common factor was Windows 7 and Windows Vista clients. All Windows XP client seemed to be mapping their drives without problems.
The way it was supposed to work was that on login, a group policy would trigger several scripts depending on the user’s assigned groups in the Active Directory and those scripts would map one or more network drives accordingly.
The fact that one of the affected users could log in to an XP client and the drives mapped correctly meant that it must have been to do with Vista & 7.
A fair bit of forum searching and MS researching later and I pieced together this solution.
Bizarrely enough this is a known issue to MS and that they don’t even support their own work-around.
“This problem occurs because User Account Control treats members of the Administrators group as standard users. Therefore, network shares that are mapped by logon scripts are shared with the standard user access token instead of with the full administrator access token.”
Solution: Registry Hack ‘EnableLinkedConnections’
- Click Start
- Type regedit > hit Enter
- In the left pane, browse to the following key:
- In the right pane, right click in the white space and click New > DWORD value
- Type the following and press Enter:
- Now double click to edit EnableLinkedConnections
- Select Decimal radio button
- Type 1 in the Value Data box on the left
- Click OK
- Restart the computer
Following the restart, log in and check My Computer for your mapped drives.