Solved

Why won't Mapped Drives Group Policy apply?

Posted on 2010-11-28
3
611 Views
Last Modified: 2012-05-10
We've recently deployed several GPOs that map network shares based on group membership.  The policies were all set up exactly the same except for changing the drive and the group having access to it.  The shares have permissions configured the same.  And the security groups are set up the same.

The problem is that two of the GPOs work fine, with the network drives appearing for the appropriate people.  The other three policies don't seem to apply correctly and the mapped drives don't appear for the users in the respective groups.

Has anyone seen this before and if you have, can you help me?  Thanks.
0
Comment
Question by:cclausen1
3 Comments
 
LVL 27

Expert Comment

by:KenMcF
ID: 34227684
How are you mapping the drives, thought scripts or using GPP?

If you are using GPP and your clients are running XP do you have the client side extensions installed?

If you run gpresult as the user do you see the policy being applied?

Are the GPOs linked to the OU the users are in?

0
 

Author Comment

by:cclausen1
ID: 34233238
The drivers are being mapped using GPP.

We're working in a terminal services environment with all servers running 2008.

I'll run and check gpresult.

The GPOs are linked to the OUs the users are in (triple checked).
0
 
LVL 1

Accepted Solution

by:
fhp-na earned 500 total points
ID: 34239708
I'm sure you have checked this, but double check the destination folder permissions.  Win2k8 is smart and if permissions are not set properly, the drives will not map.  I have personally had this problem.  Even if NTFS permissions are set, something may not be propogating properly (file server reboot should fix this).  You can also try creating a vbs file that maps the same drives and apply it manually to test and verify that these paths can be mapped correctly.  Here is a sample vbs mapping script
Dim WSHNetwork, objNetwork, objShell, WshShell, regkey, SRegMarkerValue

Set objNetwork = WScript.CreateObject("WScript.Network")

Set objShell = WScript.CreateObject("WScript.Shell")

Set WSHNetwork = CreateObject("WScript.Network")





'Disconnect ALL mapped drives

Set clDrives = WshNetwork.EnumNetworkDrives

For i = 0 to clDrives.Count -1 Step 2

    WSHNetwork.RemoveNetworkDrive clDrives.Item(i), True, True

Next 





On Error Resume Next

'Map all drives

objNetwork.MapNetworkDrive "H:", "\\fileserver\path"



On Error Goto 0



'This is to set the autodisconnect for drive mapping to "Never"

Set WshShell = WScript.CreateObject("WScript.Shell")

regkey = "HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\autodisconnect"

On Error Resume Next

readreg = WshShell.RegRead(regkey, -1, "REG_DWORD")

If Err Then

		Err.Clear

		RegRead = Null

	End If

'Adds autodisconnect registry key if not found or if different

If regkey <> readreg Then

WshShell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\autodisconnect", -1, "REG_DWORD"

End If



Wscript.Quit

Open in new window

0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now