5

I am running Windows Server 2008 Standard Edition with a Windows XP Pro workstation setup as a test unit.

I have added an Organisational Unit called 'Misc Users' and have linked a GP called 'Basic Security GP' to the OU. Any changes I make to the GP are almost immediately reflected on the workstation. I have removed the control panel, run and setup roaming profiles which map successfully from the H drive to my share on the server.

I want to add another mapped drive as a test. I have created a simple share on the server which is:

\\server\miscusers

So I have edited the GP and added a mapped drive with the following settings:

Action: create
Location \\server\miscusers
Reconnect: No
Label As: Misc Users
Use: O
Show this drive is selected

but the mapped drive never shows up for my user.

Is there any reason for this? I have prevented the A, C and D drive from being shown in My Computer but as this drive is O it should work.

Thanks,
Danny

splattne
  • 28,508
  • 20
  • 98
  • 148
dannymcc
  • 2,717
  • 10
  • 48
  • 72

1 Answers1

3

Group Policy Preferences work great on Vista and newer OS. If your environment is all Vista or newer, use Preferences. It's straight forward, easy, and works. Preferences will not work on XP unless you have the XP CSE installed. Even with the CSE many people have reported "issues" with them working reliably. GPP is not available for older OSes than XP SP2.

Edit:
Here's a copy of the MapDrives.vbs script we use. Works flawlessly on WinXP/Vista/7/2003/2008/R2.

' Author: Chris Stone
' Date: 29 MAY 2009  Version: 1.3
' Purpose: Map network drives

On Error Resume Next
Set objNet = CreateObject("WScript.Network")

Public Sub CheckAndMapNetDrive(Letter, Path, Persist)
    'Check if drive letter is already used
    Set colNetDrives = objNet.EnumNetworkDrives
    For i = 0 To colNetDrives.Count - 1 Step 2
        If colNetDrives.Item(i) = Letter Then
            'Drive Letter Exists, Test if it's the same Path
            If colNetDrives.Item(i+1) = Path Then
                'It's the same, no new mapping necessary.
                Exit Sub
            Else
                'It's different, remove old.
                objNet.RemoveNetworkDrive colNetDrives.Item(i)
            End If
        End If
    Next
    'Drive does not exist now, never did or removed.
    objNet.MapNetworkDrive Letter, Path, Persist
End Sub 

CheckAndMapNetDrive "X:", "\\server\share1", True
CheckAndMapNetDrive "Y:", "\\server\share2", True
Chris S
  • 77,945
  • 11
  • 124
  • 216
  • Thanks for the link, I'll try that first thing tomorrow. Is there an alternative to preferences? – dannymcc Oct 05 '10 at 16:05
  • The policies section has settings for most things (mapped drives aren't in there, but you can write a quick script to map the drives, and scripts are in Policies). The Preferences section was developed by a company MS bought, and MS has never done much with it. – Chris S Oct 05 '10 at 16:38
  • Ok, I'll try and find a decent tutorial on scripts in that case then. Thanks! – dannymcc Oct 05 '10 at 16:44
  • @Dannymcc, I edited in the script we use here. See above. – Chris S Oct 05 '10 at 17:22
  • Thanks, I'm viewing this page on my iPhone so I may not be seeing the whole script - where would I specify the network share location? – dannymcc Oct 05 '10 at 17:50
  • @Dannymcc, The very bottom has two examples where X: and Y: are mapped to share1 and share2 respectively. Just mess with the drive letter and path until it fits your needs, you can add more lines (or take away) as necessary. – Chris S Oct 05 '10 at 18:37
  • Ahh, I see. I couldn't see those two line on my phone. So I alter the locations and put this script into the GP using the logon script property? I'll give this a go and see how I get on. Thanks a million. – dannymcc Oct 05 '10 at 19:51