Creating a hard link mklink to a dll in system32 results in access denied
<h2>Scenario</h2>

<p>I am currently looking at a security issue with the installer of my app. Even though the full context is probably irrelevant for my question here is what I am trying to do: <a href="https://skanthak.homepage.t-online.de/!execute.html" rel="nofollow noreferrer">https://skanthak.homepage.t-online.de/!execute.html</a></p>

<h2>Problem</h2>

<p>I do have a CMD with elevated privileges and am impersonated as SYSTEM which I did using PsExec from the Sysinternals suite (see <a href="https://blogs.technet.microsoft.com/askds/2008/10/22/getting-a-cmd-prompt-as-system-in-windows-vista-and-windows-server-2008/" rel="nofollow noreferrer">this</a>).</p>

<p>The current folder is a new and empty folder inside my user folder. </p>

<p><strong>When I execute</strong> </p>

<pre><code>mklink /h version.dll C:\Windows\System32\version.dll
</code></pre>

<p>I get <strong>"Access Denied"</strong>.</p>

<p>I have granted the "create symbolic links" permission to my user, system and administrators as described in an answer <a href="https://superuser.com/questions/193632/access-is-denied-error-when-i-mklink-on-windows-7">here</a>.</p>

<p>I have removed write protection from the windows folder and all its subfolders as far as possible using an elevated explorer (Especially the version.dll is NOT write protected) </p>

<p>I am doing all this in a virtual machine hosted in HyperV. The virtual OS is Windows 7 Professional SP1.</p>

<h2>Question</h2>

<p><strong>Why is the command failing with ACCESS DENIED?</strong></p>