Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

ICACLS to change permission to a folder and its contents ?

Hi all 🤝
I made this piece of code to change permission to a folder and its contents (subfolders and files) with the command ICACLS

My issue is :
By clicking on properties of this folder > security I can always manually modify the access rights of this folder.
Is there a script to prevent this ?

ChangePermission.bat
ChangePermission.bat (Click to View)
I think you are asking to remove security tab i think you can do this with a group policy.
(Apr 14, 2017 07:02 AM)Phlox Wrote:  I think you are asking to remove security tab i think you can do this with a group policy.
Thank you for your answer Phlox, but, how to remove the security tab with a batch script ?


EDIT :
I found a hint here

To Disable Security tab:

Code
REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v Nosecuritytab /t REG_DWORD /d 1 /f

To Enable Security tab:

Code
REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v Nosecuritytab /t REG_DWORD /d 0 /f


Here is the new script :
ChangePermission.bat
ChangePermission.bat (Click to View)
Hackoo!!! !ERRORLEVEL! needs to be expanded inside of ( )

:)
Why are you worried about the security tab?
(Apr 20, 2017 02:22 AM)jyuht Wrote:  Why are you worried about the security tab?

If he made a Batch script to change the permissions, he probably doesn't want a user to be able to change them by other means than the Batch file!


Possibly Related Threads...
Thread / Author Replies Views Last Post
by usa1010Nov 26, 2023 01:47 PM 5 246 Nov 26, 2023 01:47 PM
Last Post: Hackers
[Shell] by Cyber "Max" ShamanJan 25, 2022 08:56 PM 3 185 Jan 25, 2022 08:56 PM
Last Post: Cyber "Max" Shaman
[Shell] by Emre_Jan 21, 2021 07:35 AM 0 133 Jan 21, 2021 07:35 AM
Last Post: Emre_