Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. Windows Registry Editor Version 5.00
  2. ; Open files
  3. ; Default Powershell Location C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
  4.  
  5. [HKEY_CLASSES_ROOT\*\shell\Open Powershell Bash]
  6. @="Open Powershell Here"
  7. "Icon"="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
  8.  
  9. [HKEY_CLASSES_ROOT\*\shell\Open Powershell Bash\command]
  10. @="\"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\""
  11.  
  12. ; This will make it appear when you right click ON a folder
  13. ; The "Icon" line can be removed if you don't want the icon to appear
  14.  
  15. [HKEY_CLASSES_ROOT\Directory\shell\bash]
  16. @="Open Powershell Here"
  17. "Icon"="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
  18.  
  19.  
  20. [HKEY_CLASSES_ROOT\Directory\shell\bash\command]
  21. @="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%L'"
  22.  
  23. ; This will make it appear when you right click INSIDE a folder
  24. ; The "Icon" line can be removed if you don't want the icon to appear
  25.  
  26. [HKEY_CLASSES_ROOT\Directory\Background\shell\bash]
  27. @="Open Powershell Here"
  28. "Icon"="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
  29.  
  30. [HKEY_CLASSES_ROOT\Directory\Background\shell\bash\command]
  31. @="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%L'"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement