-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathTOOL_PromptHereOptional-PowerShell7.reg
More file actions
53 lines (50 loc) · 6.2 KB
/
TOOL_PromptHereOptional-PowerShell7.reg
File metadata and controls
53 lines (50 loc) · 6.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Windows Registry Editor Version 5.00
;PowerShell v7 | WindowsContextMenuTools created by VincentBounce
;from DIRECTORY | Windows Explorer folder icon | can use %1 or %V or %L
;removing previous versions
[-HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShell7x64]
[-HKEY_CLASSES_ROOT\Directory\ContextMenus\PowerShell7x64]
[-HKEY_CLASSES_ROOT\Directory\shell\PowerShell7x64]
[-HKEY_CLASSES_ROOT\Drive\Background\shell\PowerShell7x64]
[-HKEY_CLASSES_ROOT\Drive\ContextMenus\PowerShell7x64]
[-HKEY_CLASSES_ROOT\Drive\shell\PowerShell7x64]
[-HKEY_CLASSES_ROOT\Directory\shell\run230PowerShell7]
;installing
[HKEY_CLASSES_ROOT\Directory\shell\run230PowerShell7]
;"Extended"="" ;used to view command in context menu only with Shift pushed
"MUIVerb"="Power&Shell 7"
"subcommands"=""
"Icon"="%ProgramFiles%\\PowerShell\\7\\pwsh.exe" ;MS Store version located here: "%ProgramFiles%\\windowsapps\\Microsoft.PowerShell_7.2.5.0_x64__8wekyb3d8bbwe\\pwsh.exe"
;HERE
[HKEY_CLASSES_ROOT\Directory\shell\run230PowerShell7\shell\run00230]
@="Open &here"
"Icon"="%ProgramFiles%\\PowerShell\\7\\pwsh.exe"
[HKEY_CLASSES_ROOT\Directory\shell\run230PowerShell7\shell\run00230\command]
@="pwsh.exe -NoExit -RemoveWorkingDirectoryTrailingCharacter -WorkingDirectory \"%V!\" -Command \"$host.UI.RawUI.WindowTitle = 'PowerShell 7 (x64)'\""
;HERE AS ADMIN
[HKEY_CLASSES_ROOT\Directory\shell\run230PowerShell7\shell\runas]
@="Open here as &Administrator"
"Icon"="%ProgramFiles%\\PowerShell\\7\\pwsh.exe"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\run230PowerShell7\shell\runas\command]
@="pwsh.exe -NoExit -RemoveWorkingDirectoryTrailingCharacter -WorkingDirectory \"%V!\" -Command \"$host.UI.RawUI.WindowTitle = 'Administrator: PowerShell 7 (x64)'; $host.UI.RawUI.ForegroundColor = 'yellow'\""
;from BACKGROUND | Windows Explorer right pane background folder | need to use %V
[-HKEY_CLASSES_ROOT\Directory\Background\shell\run230PowerShell7] ;removing previous versions
;installing
[HKEY_CLASSES_ROOT\Directory\Background\shell\run230PowerShell7]
"MUIVerb"="Power&Shell 7"
"subcommands"=""
"Icon"="%ProgramFiles%\\PowerShell\\7\\pwsh.exe" ;MS Store version located here: "%ProgramFiles%\\windowsapps\\Microsoft.PowerShell_7.2.5.0_x64__8wekyb3d8bbwe\\pwsh.exe"
;HERE
[HKEY_CLASSES_ROOT\Directory\Background\shell\run230PowerShell7\shell\run00230]
@="Open &here"
"Icon"="%ProgramFiles%\\PowerShell\\7\\pwsh.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\run230PowerShell7\shell\run00230\command]
@="pwsh.exe -NoExit -RemoveWorkingDirectoryTrailingCharacter -WorkingDirectory \"%V!\" -Command \"$host.UI.RawUI.WindowTitle = 'PowerShell 7 (x64)'\""
;HERE AS ADMIN
[HKEY_CLASSES_ROOT\Directory\Background\shell\run230PowerShell7\shell\runas]
@="Open here as &Administrator"
"Icon"="%ProgramFiles%\\PowerShell\\7\\pwsh.exe"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\run230PowerShell7\shell\runas\command]
@="pwsh.exe -NoExit -RemoveWorkingDirectoryTrailingCharacter -WorkingDirectory \"%V!\" -Command \"$host.UI.RawUI.WindowTitle = 'Administrator: PowerShell 7 (x64)'; $host.UI.RawUI.ForegroundColor = 'yellow'\""