Je ne veux pas to installer PowerToys, I'd rather a simpler solution for this specific problème.
J'ai essayé [ PH0 ](http://www.downloadsquad.com/2009/02/09/windows-7-tip-elevated-command-prompt-anywhere/).
J'ai essayé [adding a registry script](http://www.winhelponline.com/articles/113/1/How-to-open-an-elevated-Command-Prompt-from-the-folder-context-menu-in-Windows-Vista.html), but I get the following erreur:
>
Cannot import D:\Admin\Reg\Open command window ici (Administrator)\Open command window ici (Administrator).reg: The specified fichier n'est pas a registry script.
Vous pouvez seulement import binary registry fichiers from withdans le éditeur du registre.
Des suggestions ?
Edit:
Forgot to mention: J'ai essayé the `import` facility in `regedit` to no avail
Easiest way to get clic droit "Ouvrir commande window ici" avec admin priveleges in Windows 7
Re: Easiest way to get clic droit "Ouvrir commande window ici" avec admin priveleges in Windows 7
Ceci est one of my favorites, It également takes a bit of work.
**1.- Créez un `file.txt`**
```
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\""
```
**2.- Rename the `file.txt` to `file.reg`**
**3.- Click in `file.reg`**
It'll créez un regular clic droit menu contextuel for most sinon all possible menus.
**4.- Accept confirm authorization about it.**
**5.- Enjoiy it**
>
**Note :** Changez le text ***"ElevatedCMD"*** to whatever you want, this text sera displayed to execute the CMD, and si vous added it and wants to changez le text, seulement search in regedit, open it avec ***Windows+R*** and tapez ***regedit*** and ***Enter***, the regedit will open, search ***"ElevatedCMD"*** avec ***ctrl+B(Finder)*** and ***F3(Next)*** and edit any concurrency.
**1.- Créez un `file.txt`**
```
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\""
```
**2.- Rename the `file.txt` to `file.reg`**
**3.- Click in `file.reg`**
It'll créez un regular clic droit menu contextuel for most sinon all possible menus.
**4.- Accept confirm authorization about it.**
**5.- Enjoiy it**
>
**Note :** Changez le text ***"ElevatedCMD"*** to whatever you want, this text sera displayed to execute the CMD, and si vous added it and wants to changez le text, seulement search in regedit, open it avec ***Windows+R*** and tapez ***regedit*** and ***Enter***, the regedit will open, search ***"ElevatedCMD"*** avec ***ctrl+B(Finder)*** and ***F3(Next)*** and edit any concurrency.