Hello,
I am trying to write a VBScript that will automatically set permissions on users profiles.
eg. Set the Security, Owner and Inheritance for a users home folder.
Is there a command line tool available that sets the “Inherit from parent the permission entries that apply to child objects. Include these entries explicitly defined here” and “Replace permission entries on all child objects with entries shown here that apply to child objects” check boxes on the Permissions tab when right clicking a folder, selecting Properties, Security, Advanced?
I have been able to set the security and owner attributes on the command line using cacls and subinacl for a user(see below), however I haven’t been successful in finding a command line tool that sets the options above.
————–
cacls \\Folder\UserHomeFolders\john.smith /e /r john.smith
cacls \\Folder\UserHomeFolders\john.smith /t /e /g domain\john.smith:C
subinacl /subdirectories \\Folder\UserHomeFolders\john.smith*.* /setowner=Administrators
————–
Any thoughts/suggestions you may have to assist with this would be greatly appreciated. Thank you.
Kind Regards,
Aaron.