Solved

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

Posted on 2011-09-15
3
507 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
[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
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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
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 configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
Suggested Courses

628 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