We use a logon script to map drives for our domain users based on their security group membership.
Here is an excerpt from the script, showing how anyone in the "_development (W)" group automatically gets the "\servername\development" share mapped when they log on:
If (IsMember(objUser, "_development") = True) Then
If (MapDrive("W:", "\\servername\development") = False) Then
MsgBox "Unable to map Development share"
End If
End If
This works as intended for all domain users who are members of the various different security groups; however, no drives are mapped for the domain administrator account as it is not currently a member of any of the security groups (and I feel it would be redundant adding it to them, just for the sake of mapping drives).
What I want to do is to have an additional entry in the logon script which maps network drives specifically for the domain administrator account.
Our workstations are Windows 7 and the domain controller is SBS 2003.
What would be the correct syntax for this?