Page 2 of 2

Re: reset ntfs partition permissions

Posted: 19 Jul 2014 23:14
by highend
You did read the comments in the script?

Code: Select all

    // Edit this list if you want to add / remove commands to process
    // Ofc you need to add additional variables right over this comment...
Not the script failed, ICACLS failed.

<- On vacation for a week

Re: reset ntfs partition permissions

Posted: 19 Jul 2014 23:20
by Filehero
highend wrote:<- On vacation for a week
Have lots of fun and enjoy it. :D

Re: reset ntfs partition permissions

Posted: 20 Jul 2014 06:28
by yusef88
highend wrote:You did read the comments in the script?

Code: Select all

    // Edit this list if you want to add / remove commands to process
    // Ofc you need to add additional variables right over this comment...
Not the script failed, ICACLS failed.

<- On vacation for a week
Of course, the script is flawless ،i'm also going on a long vacation ..thanks an bye

Re: reset ntfs partition permissions

Posted: 20 Jul 2014 17:36
by bdeshi
You're all going on vacation; my vacation is almost over!! :o
Well, have a great time!

Re: reset ntfs partition permissions

Posted: 20 Dec 2015 15:28
by CookieMonster
All these scripts reset NTFS partition permission; none will temporarily give a folder, like Program Files folder, elevated rights then via a timer or another toggle reset the permissions back to preventing the user from writing to the folder, if one only needs the elevated rights for a few minutes or maybe a few hours ?

Re: reset ntfs partition permissions

Posted: 20 Dec 2015 15:31
by highend
And? The thread is called "reset ntfs partition permissions" not "do something else"...

Write your own script that does what you need^^

Re: reset ntfs partition permissions

Posted: 20 Dec 2015 15:41
by CookieMonster
highend wrote:And? The thread is called "reset ntfs partition permissions" not "do something else"...

Write your own script that does what you need^^
I know. :|

I want to get a sense as to what in particular the scripts in this thread are doing, is there something wrong with that ? Did I commit a felony ?

Re: reset ntfs partition permissions

Posted: 20 Dec 2015 15:47
by highend
Read the docs about icacls?

Re: reset ntfs partition permissions

Posted: 21 Dec 2015 02:47
by CookieMonster
If one wanted to give full rights to the folder, program files ?

Code: Select all

icacls c:\program files\ /T F 
Basically you can tie the command to a script to toggle which options on a button ?

Re: reset ntfs partition permissions

Posted: 21 Dec 2015 05:09
by highend
1. No and you obviously didn't read icacls docs
2. That command "directly"? No. And what the button does (and the script that is assigned to it) is up to you...

Re: reset ntfs partition permissions

Posted: 21 Dec 2015 05:48
by CookieMonster
I read these docs (http://www.computerhope.com/icacls.htm). I wanted to know if the command I posted would apply full access to the folder I applied the command too; including sub-folders ?

Re: reset ntfs partition permissions

Posted: 21 Dec 2015 06:01
by highend
Nope

Re: reset ntfs partition permissions

Posted: 21 Dec 2015 06:16
by CookieMonster
highend wrote:Nope
Well, what would be the correct command ?

Re: reset ntfs partition permissions

Posted: 21 Dec 2015 06:20
by highend
That's easy...

Command: *Read the docs*