[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 664
  • Last Modified:

Map a network drive through group membership in a Server 2003 Standard Domain.

Is there a way to map a network drive through group membership that does not involve command line scripts? and no, we have not installed GPP on the server.
0
HardwareDude
Asked:
HardwareDude
  • 8
  • 6
1 Solution
 
jawa29Commented:
Hi HardwareDude

You would need to script this I'm afraid, it is a fairly easy to do in VBS.

Let me know if you'd like something composed.

Jawa29
0
 
HardwareDudeAuthor Commented:
Jawa29-
Well, If you have a moment- What I need is a script that will setup a share ("S") on the members of the "Development" group aimed at \\nnnnnnn\Development. We only want members of that group to get that drive mapped.- thanks for the help!
0
 
chris_martin62Commented:
Ok i know you don't want to use a script but with Windows Server 2003 and if you are not using Group Policy Prefences then this is going to be the best way. Here is a script that we use if you don't have one. Its a logon script. It looks to see if the computer is part of a group no i renamed the group School Computers and if it is part of that group then it maps \\server\folder as the P drive. You can change this if you want. But I thought it may help.
'P Drive Mapping (on existing Staff Drive)
If IsMember(objComputer, "School Computers") Then
  If Not MapDrive("P:", "\\server\folder") Then
  End If
End If

Open in new window

0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
chris_martin62Commented:
this should work
'S Drive Mapping (on existing Staff Drive)
If IsMember(objComputer, "Developmen") Then
  If Not MapDrive("S:", "\\srv1\Development") Then
  End If
End If

Open in new window

0
 
chris_martin62Commented:
Sorry forgot to add and change somethings
'S Drive Mapping (on existing Develoment)
If IsMember(objComputer, "Development") Then
  If Not MapDrive("S:", "\\srv1\Development") Then
  End If
End If

Open in new window

0
 
HardwareDudeAuthor Commented:
So I just save as "Development S Mapping.bat" and save in SystemRoot\SYSVOL\Sysvol\DomainName\Scripts?
0
 
HardwareDudeAuthor Commented:
Also, what if the user has created a manual mapping to some other folder? and is using the S drive?
0
 
chris_martin62Commented:
this is for a vbs script sorry forgot to tell you that
0
 
chris_martin62Commented:
It will override any S drive that you already have.
0
 
HardwareDudeAuthor Commented:
Thanks again for your help, but just to clarify: what do I name it and where do I put it in order to run it?
0
 
chris_martin62Commented:
if this is how you want to go then  Development S Mapping.bat change the .bat to .vbs. and put it as a log on script. in User Configuration\Policies\Windows Settings\Sripts(logon/logoff)\Logon. there should be a button for show files click that. That is where you will save your script. then go back and click Add and add that script in the logon properties menu logon. it will add it to your policy. Maker sure that your users can get this policy since it is on the user side not computer. Or that you have Loopback policy processing running.
0
 
HardwareDudeAuthor Commented:
OK, I'm sorry, but I'm confused - can I run it as a .bat file at all or will it not work like that?
0
 
chris_martin62Commented:
Don't know have not tried that. If it doesn't all you have to do is rename the file and remove .bat and put .vbs. Is tere a reason why you don't want to run it as a vbs script.
0
 
HardwareDudeAuthor Commented:
The main reason I wanted to run it as a .bat file is that I know where to put it for it to work- the procedure you described above was not clear to me:     " put it as a log on script. in User Configuration\Policies\Windows Settings\Sripts(logon/logoff)\Logon. there should be a button for show files click that. That is where you will save your script. then go back and click Add and add that script in the logon properties menu "


0
 
chris_martin62Commented:
I explained how to add it to a policy. IF you are using group policy then you can added this to a policy and run it that way. That part on were to save the file and set the policy up to run the script is what i gave you. You go into a policy to the settings of Configuration\Policies\Windows Settings\Sripts(logon/logoff)\Logon. You would be setting the scritp to run on login. You may be able to run it as a bat file but i am not sure. I do know that running as a vbs will work. that is how we do it.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 8
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now