Solved

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

Posted on 2014-09-24
10
207 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
 
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

920 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

17 Experts available now in Live!

Get 1:1 Help Now