Solved

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

Posted on 2011-09-15
3
502 Views
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.
0
Comment
Question by:nav2567
3 Comments
 
LVL 3

Accepted Solution

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

Regards
[advertising signature removed - modguy]
0
 
LVL 1

Assisted Solution

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

Author Closing Comment

by:nav2567
ID: 36892177
Thanks.
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

I was asked if I could set up a fax machine so that incoming faxes were delivered to people's Exchange inboxes and so that they could send faxes from their desktops without needing to print the document first.  I knew it was possible but I had no id…
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…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

813 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

16 Experts available now in Live!

Get 1:1 Help Now