<p>Ceci est l’une de mes méthodes préférées. Elle demande aussi un peu de travail.</p>
<p><strong>1.- Créez un <code>file.txt</code></strong></p>
<pre><code class="lang-auto">Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="ElevatedCMD"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="ElevatedCMD"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Drive\shell\runas]
[HKEY_CLASSES_ROOT\Drive\shell\runas]
@="ElevatedCMD"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell]
@="none"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
@="ElevatedCMD"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
</code></pre>
<p><strong>2.- Renommez le <code>file.txt</code> en <code>file.reg</code></strong></p>
<p><strong>3.- Cliquez sur <code>file.reg</code></strong></p>
<p>Cela créera une entrée de menu contextuel par clic droit pour la plupart sinon tous les menus possibles.</p>
<p><strong>4.- Acceptez la confirmation d’autorisation.</strong></p>
<p><strong>5.- Profitez-en</strong></p>
<blockquote></blockquote>
<p><strong>Note :</strong> Changez le texte <em><strong>“ElevatedCMD”</strong></em> en ce que vous voulez, ce texte sera affiché pour exécuter le CMD, et si vous l’avez ajouté et voulez modifier le texte, cherchez simplement dans regedit, ouvrez-le avec <em><strong>Windows+R</strong></em> et tapez <em><strong>regedit</strong></em> puis <em><strong>Entrée</strong></em>, le regedit s’ouvrira, cherchez <em><strong>“ElevatedCMD”</strong></em> avec <em><strong>Ctrl+B (Rechercher)</strong></em> et <em><strong>F3 (Suivant)</strong></em> et modifiez chaque occurrence.</p>