用“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即可