Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Permissions with a script

Status
Not open for further replies.

clonny2

MIS
Jan 28, 2003
470
US
what is a good method to create a directory tree and setup permissions with a script.

I have tried cacls. xcacls, xcalcs.vbs, SetACL.exe and none of them seem to work 100%. Each has issues in one way or another.

What i am trying to do is create a script that will create a directory tree and assign specific permissions so that i can test some backup applications.
 
What issues have you had with cacls? I've used it frequently enough and not noticed any.
 
XCACLs works great with vbscript. The key with it is that you must set ALL the permissions you want. It will wipe out any existing permissions.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top