用「windows+R」打開運行窗口,輸入「regedit」回車,打開註冊表管理器
直接輸入:計算機\HKEY_CLASSES_ROOT\Directory\shell\cmd 定位
計算機\HKEY_CLASSES_ROOT\Directory\shell\cmd 是文件加右鍵
計算機\HKEY_CLASSES_ROOT\Directory\Background\shell\cmd 是桌面右鍵
如果需要隱藏 Powershell,修改的路徑是
計算機\HKEY_CLASSES_ROOT\Directory\shell\Powershell\command
方法是:ShowBasedOnVelocityId重命名成HideBasedOnVelocityId即可