title: What does '__COMPAT_LAYER' actually do?
body: <p>Recently, i was trying to give my <strong>application administrator rights without system asking for &quot;Do you want to give administrator rights?&quot;</strong> and i found a way which is working perfectly.</p>
  <p><strong>Solution I Found</strong></p>
  <p>I created a bat file named <em><strong>nonadmin.bat</strong></em> and wrote the below code in it</p>
  <pre><code>cmd min C set __COMPAT_LAYER=RunAsInvoker &amp;&amp; start &quot;&quot; %1
  </code></pre>
  <p>and if we drag any exe on it, it gives them administrator rights (before it was not letting me access environment variables without it but after draging the file on bat it did work).</p>
  <p><strong>Question</strong></p>
  <p>Now my question is:-</p>
  <ol>
  <li>What actually '__COMPAT_LAYER' means and what does it do?</li>
  <li>How do i remove such a thing so that it asks for administrator rights again?</li>
  <li>Does this reduce system security?</li>
  </ol>