using script to create share and permission for folders in Windows 2008 server.

Posted on 2011-09-15
Last Modified: 2012-05-12
I need to create a lot of folders in a WIN2K8 server volume and plan to use a script.  

Previously, I use "netshare" to create shares, "cacls" to assign domain accounts to folders, and "subinacl /subdirectories /setowner" command to assign ownership to the folders.

Will the above commands still valid in WIN2K8?  I will use a cmd script as I am not good in VB.

Please advise.  Thanks.
Question by:nav2567
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

Accepted Solution

Krypton-IT-Solutions earned 250 total points
ID: 36543563
Hello, I think its ICACLS in Server 2008 and NET SHARE is still the same.

[advertising signature removed - modguy]

Assisted Solution

expert20 earned 250 total points
ID: 36543619
If it is VB script , we can use File system objcet concept
By creating File system object , we can create folders during runtime,
set fso = createobject("scripting.filesystemobject")
fso.createfolder "Path of folder need to create"
set fso = nothing

Author Closing Comment

ID: 36892177

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

752 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