Change NTFS ACLs

Discussion in 'Scripting' started by Fernando P. Moraes, Nov 25, 2003.

  1. Is possible to change NTFS permissions from a script ?
    Is there a WMI object fot that ?
    Fernando P. Moraes, Nov 25, 2003
    1. Advertisements

  2. Fernando P. Moraes

    Guest Guest

    I find it easier to use cacls called fomr within a script -

    eg - (where strFodlerName is the path/name of the

    Set objShell = WScript.CreateObject ("")
    strReturn = ("cacls " & strFolderName
    & " /T /E /R " & chr(34) & "Domain Users" & chr(34), 2,
    Guest, Nov 26, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.