gmknowles

Open command prompt here as administrator

Mar 20th, 2023
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | Fixit | 0 0
  1. Windows Registry Editor Version 5.00
  2.  
  3. [HKEY_CLASSES_ROOT\Directory\shell\OpenElevatedCmd]
  4. @="Open command prompt here as administrator"
  5. "Icon"="cmd.exe"
  6.  
  7. [HKEY_CLASSES_ROOT\Directory\shell\OpenElevatedCmd\command]
  8. @="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k,pushd,%V' -Verb RunAs\""
  9.  
  10. [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenElevatedCmd]
  11. @="Open command prompt here as administrator"
  12. "Icon"="cmd.exe"
  13.  
  14. [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenElevatedCmd\command]
  15. @="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k,pushd,%V' -Verb RunAs\""
  16.  
  17. [HKEY_CLASSES_ROOT\Drive\shell\OpenElevatedCmd]
  18. @="Open command prompt here as administrator"
  19. "Icon"="cmd.exe"
  20.  
  21. [HKEY_CLASSES_ROOT\Drive\shell\OpenElevatedCmd\command]
  22. @="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k,pushd,%V' -Verb RunAs\""
  23.  
  24. [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenElevatedCmd]
  25. @="Open command prompt here as administrator"
  26. "Icon"="cmd.exe"
  27.  
  28. [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenElevatedCmd\command]
  29. @=
Tags: windows 11
Add Comment
Please, Sign In to add comment