Hi there,

I have some computers which have the folder C:\Windows\Temp with wrong right.
I decided to use my K1000 to reset the rights of the folder "Temp".

I have created a new script which is:

The commande line work fine with an admin console on every computer.

But the script just tell me everything work fine and change nothing.
I tried a "Run As" "local system" account and "administrator account".

Could you guys help me a bit ? 
Thank you and sorry for my bad english ;).
Answer Summary:
0 Comments   [ + ] Show Comments


Please log in to comment

Answer Chosen by the Author


try to amend the parameters in this way:
/C icacls C:\Windows\Temp /reset /T /C

Actually ICACLS is an executable so you can even try to invoke it directly without the need to use the CMD

Parameters: C:\Windows\Temp /reset /T /C

Kind regards,
 Marco - StockTrader
Answered 01/08/2016 by: StockTrader
Red Belt

Please log in to comment


It work !

Thank you for your help S.
Answered 01/08/2016 by: Olendis
Orange Belt

  • Thanks! may you mark my answer as the ''choosen'' one please?
    In this way the topic will be marked as "Answered"
    Thanks & Regards,
    Marco - StockTrader
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja