鼠標右鍵增加 PowerShell 入口

@zgcwkj  2024年04月01日

分類:

代碼 其它 

Windows Server 2012 右鍵增加 PowerShell 入口

  1. 創建一個reg格式的文件,內容如下:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell]
@="@shell32.dll,-8508"
"Extended"=""
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8

[HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"
  1. 雙擊導入到注冊表既可!


評論已關閉

Top