打開註冊表編輯器regedit.exe,定位到
計算機\HKEY_CLASSES_ROOT\Directory\Background\shell\cmd
注意Win10可以直接輸入註冊表位置,不用像Win7一樣手動定位了。
將右側項“HideBasedOnVelocityId”重命名爲“ShowBasedOnVelocityId”,或者刪除該項,這樣在文件資源管理器裏Shift+右鍵彈出的菜單中就會顯示“在此處打開命令窗口”了。注意,有的系統上要隱藏“在此處打開Powershell”纔可以。
該位置系統默認所有者是TrustedInstaller,無法重命名,請採用以下步驟:
在該項上右鍵,點擊權限-高級-更改
如果想要隱藏“在此處打開Powershell”,請繼續往下看。定位到
計算機\HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell
就在剛纔位置的下面。只要把“ShowBasedOnVelocityId”重命名爲“HideBasedOnVelocityId”,“在此處打開Powershell”就會隱藏了。