Jump to content

How to change file or folder integrity level?


Recommended Posts

If you have the appropriate permissions, it looks like you could use the command line tool icacls to set the integrity level.

icacls  /setintegritylevel [(CI)(OI)]Level explicitly adds an integrity
        ACE to all matching files.  The level is to be specified as one
        of:
            L[ow]
            M[edium]
            H[igh]
        Inheritance options for the integrity ACE may precede the level
        and are applied only to directories.

https://blogs.msdn.microsoft.com/jolson/2007/11/12/whats-mandatory-integrity-control/

https://web.archive.org/web/20080513154947/http://www.securityfocus.com/print/infocus/1887

 

I also found this MDSN page - https://docs.microsoft.com/en-us/windows/desktop/api/securitybaseapi/nf-securitybaseapi-addmandatoryace

Edited by spudw2k
Link to comment
Share on other sites

I still get access denied error in that case. Found this link: https://answers.microsoft.com/en-us/windows/forum/windows_10-files/access-denied-when-adding-folders-to-windowsapps/3e6bfbf7-9457-49b5-8fbd-94c430105993

It seems editing file I want is impossible unless there is anything else to change beside permissions and integrity level.

Edited by kosamja
Link to comment
Share on other sites

  • 2 weeks later...

@kosamja,

Windows has several protection mechanisms against users making changes to system files. and there is a good reason for that.

how certain are you that your reason for making changes to system files is better than their reason to prevent that?

bare in mind that even if you succeed on your test target, when going to deploy on a larger scale, high percentage of failures is inevitable.

i advise you either describe or rethink your purpose in all this, so we may help you find a better - perhaps officially supported - method to achieve your goal.

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
Share on other sites

I just want to edit taskbar context menu which is in explorer.exe.mui (menu 205) to remove some context menu entries, i am not aware of any other way to remove them beside editing explorer.exe.mui. But cant edit explorer.exe.mui inside of installed language packs because they are in WindowsApps folder

Link to comment
Share on other sites

  • 3 years later...

To do that you have to take ownership of the file first, click apply and reopen the props menu. Then you make sure that the Administrators (or if you don't want to provide admin info every time. Then make the user account you want to be the only one with full access.) Then you can use the file like any other file with these perms.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...