Search code examples
windowssandboxicacls

When settingintegrity levels using icacls command it gives access denied error?


When I am running following command on windows it says access denied. I am running from admin .

icacls hello.bat /setintegritylevel high

what needs to be done to get this working.


Solution

  • In order to run an application, like icacls under administrative privileges, on Windows, starting your command prompt in administrator mode will allow your commands within it to execute with administrative privileges.

    Don't be tempted to always run your command prompt in admin mode. For safety, this should always be a conscious decision.