How to configure script compatibility mode?

As part of the script deployment, I need to add the "run as admin" flag for some application. I found where it is configured in the registry, but I see that this is not enough. For example, I have procexp64.exein C:\; I am adding a string value C:\procexp64.exewith ~ RUNASADMINregistry data in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers. After that, I see the "Run as administrator" checkbox in the exe properties, but in fact the application does not work as admin!

enter image description here

, , . . procmon , dllhost - ​​ . dllhosts , - . ?
, , reg...
, . Win Srv 2012 R2.

+4
1

: " "

, HKLM HKCU

reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\procexp64.exe" /d "RUNASADMIN" /f

reg.exe Add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\procexp64.exe" /d "RUNASADMIN" /f

+2

Source: https://habr.com/ru/post/1695297/


All Articles