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

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

830 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