Permissions and access control

Batch, ASP, JScript, Kixtart, etc.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
hackoo
Posts: 103
Joined: Sat Jan 22, 2011 12:27 am

Permissions and access control

Post by hackoo » Mon Aug 01, 2011 4:50 am

Hello, I made a big blunder, I performed: ICACLS "c" / Setintegritylevel (OI) (CI) Low I want to remove this restriction (cancel the action), I seek not find ... do you have a solution please? - I can not show hidden files and system files (where the boxes are unchecked) - I do not have access to the trash - I can not create / modify files / folders in C: Program Files and C: Program Files (x86) - There are probably other "restrictions" I have not tested everything This is due to my error in cmd: ICACLS "c" / Setintegritylevel (OI) (CI) Low- When I open a. Exe I have always this dialog:- Some programs that custom settings are not taken into account, for example:

User avatar
hackoo
Posts: 103
Joined: Sat Jan 22, 2011 12:27 am

Permissions and access control

Post by hackoo » Mon Aug 01, 2011 4:50 am

Hello, I made a big blunder, I performed: ICACLS "c" / Setintegritylevel (OI) (CI) Low I want to remove this restriction (cancel the action), I seek not find ... do you have a solution please? - I can not show hidden files and system files (where the boxes are unchecked) - I do not have access to the trash - I can not create / modify files / folders in C: Program Files and C: Program Files (x86) - There are probably other "restrictions" I have not tested everything This is due to my error in cmd: ICACLS "c" / Setintegritylevel (OI) (CI) Low- When I open a. Exe I have always this dialog:- Some programs that custom settings are not taken into account, for example:

jvierra
Posts: 13907
Joined: Tue May 22, 2007 9:57 am
Contact:

Permissions and access control

Post by jvierra » Mon Aug 01, 2011 5:05 am

Restore from backup?

This is not a scripting question.

Once you lock yourself out of teh file system with teh programs on it you are hosed.

Boot from a CD and run repair utilities. Repair system drive security.

jvierra
Posts: 13907
Joined: Tue May 22, 2007 9:57 am
Contact:

Permissions and access control

Post by jvierra » Mon Aug 01, 2011 11:27 pm

for /R %homedrive% %f in (*.exe) do @echo %f

User avatar
hackoo
Posts: 103
Joined: Sat Jan 22, 2011 12:27 am

Permissions and access control

Post by hackoo » Thu Aug 04, 2011 10:05 pm

Hello again !
I want to display the level of integrity of all files / directories / subdirectories / etc...récursivement.
Accesschk does so without problem. But I want to use that CHML may also remove / reset.
SYNTAX: for / r %f in (*) do chml %f
Files are processed, but:
- The directories are not treated
- The subdirectories and their files are not processed
- The files / directories of more than 6 characters and / or with spaces are not treated
I found a partial solution. Beginner in programming, I need your help please.
Thank you !

Locked