-
Notifications
You must be signed in to change notification settings - Fork 7
/
PowerShell7-here.reg
30 lines (28 loc) · 3.37 KB
/
PowerShell7-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
24
25
26
27
28
29
30
Windows Registry Editor Version 5.00
; WindowsContextMenuTools created by VincentBounce
;PowerShell v7 ;delete 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]
[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'\""