/build/static/layout/Breadcrumb_cap_w.png

icacls /reset - script work but no action on the target

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:
r1l6n5.png

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 ;).

0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: StockTrader 8 years ago
Red Belt
1

Top Answer

Hi,

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

File: ICACLS.EXE
Parameters: C:\Windows\Temp /reset /T /C


Kind regards,
 Marco - StockTrader
Posted by: Olendis 8 years ago
Orange Belt
0
It work !

Thank you for your help S.

Comments:
  • 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 - StockTrader 8 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ