Solved

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

Posted on 2014-09-24
10
210 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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 20

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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

749 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