右键菜单 目录背景 → %V
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\PowerShell7Admin\command
右键菜单 目录 → %1
HKEY_CLASSES_ROOT\Directory\shell\PowerShell7Admin\command
桌面
HKEY_CLASSES_ROOT\DesktopBackground\Shell
右键添加 (管理员) powershell 7
右键菜单 目录背景
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell
默认
(管理员) PowerShell 7
Position
Bottom
Icon
C:\Program Files\PowerShell\7\pwsh.exe
command
"C:\Program Files\PowerShell\7\pwsh.exe" -NoExit -WorkingDirectory "%V"
=================================================
右键菜单 文件夹图标
HKEY_CLASSES_ROOT\Directory\shell\PowerShell7Admin\command
默认
(管理员) PowerShell 7
Position
Top
Icon
C:\Program Files\PowerShell\7\pwsh.exe
command
powershell -Command "Start-Process 'pwsh' -Verb RunAs -WorkingDirectory '%1'"
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
右键添加 powershell 7
右键菜单 目录背景
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell
默认
PowerShell 7
Position
Bottom
Icon
C:\Program Files\PowerShell\7\pwsh.exe
command
pwsh.exe -noexit -WorkingDirectory "%V"
=================================================
右键菜单 文件夹图标
HKEY_CLASSES_ROOT\Directory\shell\PowerShell7Admin\command
默认
PowerShell 7
Position
Top
Icon
C:\Program Files\PowerShell\7\pwsh.exe
command
pwsh.exe -noexit -WorkingDirectory "%1"

