Announcement

Collapse
No announcement yet.

cacls works intermittently

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • cacls works intermittently

    Cacls c:\program1 /e /g joebloggs:f >>c:\users\desktop\script-log.txt 2>&1 Crazy thing is it works sometimes and not others.
    The output of the command is redirected to a text file and it shows "processed c:\program1"
    But when I go to double check the result, the user joebloggs is not in the acls list (Security tab).


    I have tried this on an identical machine with the same image and then it works sometimes!


    It has to work every time.


    Anyone know why this occurs?

  • #2
    Re: cacls works intermittently

    The first thing that comes to mind is something preventing the command from resolving the user name. Any error messages? Have you tried using icacls instead?

    Comment

    Working...
    X