Solved

How to create a folder called Business on all the users H: (Home drive)

Posted on 2014-09-24
10
208 Views
Last Modified: 2014-09-26
Hi

I have 100 users  and i want to create a folder called Business on all the students H: drive  and that is their home drive.
Secondly i want to give them  modify access to this business folder.
Our DC is 2012 and our file server that host the student home folder is windows 2003
Please suggest is there a easy way of doing this without manually creating it.

Thanks
0
Comment
Question by:lianne143
  • 5
  • 4
10 Comments
 
LVL 9

Assisted Solution

by:dlb6597
dlb6597 earned 417 total points
ID: 40341462
are all the student's personal folders in the same folder and are the student folders all that exist in this folder? if so, it can be done in a simple for /d script...otherwise we'll need to account for folders where you don't want the business folder created...and be default they will have modify access to the folder when you create it in their personal folder...
0
 
LVL 9

Assisted Solution

by:dlb6597
dlb6597 earned 417 total points
ID: 40341477
this command will create a folder called business in each subfolder where you run the command (from a command prompt)

for /d %i in (*.) do md %i\business

if all the student folders aren't contained in  a single folder (or if other folders exist where you don't want the business folder created) you can accomplish this by creating a text file (sc.txt) of the full paths where you want the business folder created and use a For /f script....

for /f %i in (sc.txt) do md %i\business
0
 

Author Comment

by:lianne143
ID: 40341618
I have two group of students, Year11 and Year12

The UNC path from my windows 7 PC for Year11 students is  \\File server-a\StudentDocs\Year11\Student 1-50

The UNC path from my windows 7 PC  for Year12 students is \\File server-a\StudentDocs\Year12\Student 51-100

Please post me the exact syntax that i need to run on the command prompt.

thanks
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 9

Accepted Solution

by:
dlb6597 earned 417 total points
ID: 40341658
map a drive letter to \\file server-a\studentdocs
open a command prompt
switch to the mapped drive above, switch to the year11 folder

run this command: for /d %i in (*.) do md "%i\business"

switch back to the year12 folder and repeat the command above.
0
 

Author Comment

by:lianne143
ID: 40341849
I followed the stepe above and did for year 11 and it sucessfully created the business directoty within the each of the  individual students home directories.

I checked the permission for this folder it has not given any permission , do i need to do something else. I would like to have modify permission for this folder.
I checked other folders with the students home drive and most folders have modify permissions given.
0
 
LVL 9

Assisted Solution

by:dlb6597
dlb6597 earned 417 total points
ID: 40341993
you apparently have some non-standard NTFS permissions that are not allowing the new business folder to inherit the permissions from the parent folder.
0
 

Author Comment

by:lianne143
ID: 40342497
Do I need to manually assign edit  permissions .

thanks
0
 
LVL 9

Assisted Solution

by:dlb6597
dlb6597 earned 417 total points
ID: 40342518
that is difficult to answer without seeing exactly how your permissions are set on each student folder...I would suggest getting the permissions sorted out there so that the new business folder inherits the permissions...a much cleaner solution that forcing update permissions to each new business folder....
0
 

Author Comment

by:lianne143
ID: 40342674
Thanks
0
 
LVL 19

Assisted Solution

by:compdigit44
compdigit44 earned 83 total points
ID: 40345035
I wonder if using a Group Policy Preference to create a new folder would work for you?
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

816 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

10 Experts available now in Live!

Get 1:1 Help Now