-
Notifications
You must be signed in to change notification settings - Fork 7
/
PowerShell5-ISE-here.reg
23 lines (21 loc) · 2.27 KB
/
PowerShell5-ISE-here.reg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Windows Registry Editor Version 5.00
; WindowsContextMenuTools created by VincentBounce
;PowerShell v5 ISE ;DOESN'T work if path contains []
[-HKEY_CLASSES_ROOT\Directory\shell\run220PowerShell5ISE]
[HKEY_CLASSES_ROOT\Directory\shell\run220PowerShell5ISE]
"MUIVerb"="PowerShell 5 &ISE"
"subcommands"=""
"Icon"="%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell_ise.exe"
;HERE
[HKEY_CLASSES_ROOT\Directory\shell\run220PowerShell5ISE\shell\run00220]
@="Open &here"
"Icon"="%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell_ise.exe"
[HKEY_CLASSES_ROOT\Directory\shell\run220PowerShell5ISE\shell\run00220\command]
@="cmd.exe /s /c start /D \"%V\" powershell_ise.exe" ;start.exe directly DOESN'T work ;this @="cmd.exe /c cd \"%1\" && powershell_ise.exe" keeps CMD window opened
;HERE AS ADMIN
[HKEY_CLASSES_ROOT\Directory\shell\run220PowerShell5ISE\shell\runas]
@="Open here as &Administrator"
"Icon"="%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell_ise.exe"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\run220PowerShell5ISE\shell\runas\command]
@="cmd.exe /s /c start /D \"%V\" powershell_ise.exe"