The current setting looks like this:
User Configuration
Windows Settings
Scripts
Logon
Name Parameters
\\domain.com\SysVol\afrmic.com\scripts\mips_S_drive.vbs
Here is the script:
------------------------------------------
'MapDrive.vbs, Mapping drive letters in GPO
'
Option Explicit
On Error Resume Next
Dim wshNetwork, wshShell, wshSysEnv, colDrives, nReturnCode
Dim i, strDrive, strShare
strDrive = "S:"
strShare = "\\ServerName\share"
Set wshNetwork = WScript.CreateObject("WScript.Network")
Set wshShell = WScript.CreateObject("WScript.Shell")
'BEGIN CALLOUT A
Set wshSysEnv = wshShell.Environment("SYSTEM")
'END CALLOUT A
If (wshSysEnv("OS") = "Windows_NT") Then
'BEGIN CALLOUT B
Set colDrives = wshNetwork.EnumNetworkDrives
For i = 0 To colDrives.Count - 1 Step 2
If (colDrives(i) = strDrive) Then
wshNetwork.RemoveNetworkDrive strDrive
End If
Next
wshNetwork.MapNetworkDrive strDrive, strShare
'END CALLOUT B
End If
Set wshNetwork = Nothing
Set wshShell = Nothing
WScript.Quit(nReturnCode)
------------------------------
I have other drive mappings in other GPOs that use this same script.