Link to home
Create AccountLog in
Avatar of NEARNG
NEARNGFlag for United States of America

asked on

uncheck "inherit from parent" on file with vbscript

I have to edit file permissions on a specific file throughout my enterprise of 2000+ XP workstations.  I plan on using cacls in a vbcript which will execute at system startup.

The problem is that I need to uncheck "inherit from parent" on this file.  Don't want to have to manually do this on the 2000+ workstations.

Is there a specific line of vbscript code that could perform this?
Avatar of RobSampson
RobSampson
Flag of Australia image

Hi, this is an example of using the NP parameter to icacls.exe
http://thelazyadmin.com/blogs/thelazyadmin/archive/2007/06/28/icacls-exe-acl-command-line-management.aspx

Regards,

Rob.
Avatar of NEARNG

ASKER


It appears that I can't use icacls with XP.  Is there another tool that will accomplish the same thing for XP?
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of NEARNG

ASKER


Perfect!  Works!!

Thanks!
No problem.  Thanks for the grade.

Regards,

Rob.