<p>I&#8217;ve just run into an issue with some of our Windows 2012R2 servers that could not be activated via KMS service.</p>
<p><img class="alignnone size-full wp-image-3946" src="https://www.wincert.net/wp-content/uploads/2020/10/windows-activation.png" alt="" width="425" height="106" /></p>
<p>When I have tried to activate Windows I got the following error message:</p>
<p><strong>Windows can&#8217;t activate. Try again later</strong> with the following error details:</p>
<p><strong>Error code: 0x80070005. Error description: Access is denied.</strong></p>
<p><img class="alignnone size-full wp-image-3948" src="https://www.wincert.net/wp-content/uploads/2020/10/error-activating-windows.png" alt="" width="453" height="234" /></p>
<p>I&#8217;ve tried to activate Windows using a <strong>command prompt in elevated mode</strong> with the following command:</p>
<p><strong> slmgr.vbs /ato</strong></p>
<p>Even though I got a successful activation confirmation, Windows were still not activated.</p>
<p><img class="alignnone size-full wp-image-3949" src="https://www.wincert.net/wp-content/uploads/2020/10/kms-error.png" alt="" width="335" height="209" /></p>
<p>Once I&#8217;ve tried to activate again using slmgr.vbs /ato command this time I got the following error message:</p>
<p>Activating Windows(R), Server Standard edition</p>
<p>Error: 0x80070005 Access denied: the requested action requires elevated privileges</p>
<p><img class="alignnone size-full wp-image-3950" src="https://www.wincert.net/wp-content/uploads/2020/10/activations-1.png" alt="" width="491" height="179" /></p>
<p>Upon further research, it appears there is a bug in the KMS activation process for Windows Servers 2012 R2 versions. If a third-party application has been installed on the server it might mess DCOM permissions on the server that can result in the server being unable to activate. Have in mind that this problem only appears in KMS activation environments.</p>
<p>So, to fix this issue you&#8217;ll have to do the following:</p>
<p>In the <strong>Run</strong> prompt type <strong>DCOMCNFG</strong> and hit <strong>Enter</strong>.</p>
<p>In the left pane expand <strong>Component Services &#8211;>; Computers</strong> and right-click on <strong>My Computer </strong>and then<strong> Properties</strong>.</p>
<p><img class="alignnone wp-image-3951 size-full" title="Cannot activate Windows. Error code 0x80070005" src="https://www.wincert.net/wp-content/uploads/2020/10/dcom-permissions.png" alt="Cannot activate Windows. Error code 0x80070005" width="581" height="230" /></p>
<p>In <strong>My Computer properties</strong> window select the <strong>COM Security tab</strong> and then click on <strong>Edit Default</strong>.</p>
<p>Add <strong>SELF account</strong> and select <strong>Allow</strong> for both <strong>Local and Remote access.</strong></p>
<p><img class="alignnone size-full wp-image-3952" src="https://www.wincert.net/wp-content/uploads/2020/10/dcom-self-permission.png" alt="" width="327" height="178" /></p>
<p>Click <strong>OK</strong> twice and <strong>restart the server</strong>. After the server restarts, Windows should be activated.</p>
<p><img class="alignnone size-full wp-image-3953" src="https://www.wincert.net/wp-content/uploads/2020/10/windows-is-activated.png" alt="" width="366" height="188" /></p>
<p>Comments are welcome!</p>

Cannot activate Windows. Error code 0x80070005
