请打开注册表编辑器,找到下键
计算机\HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell\command
确保右侧默认值的命令是
powershell.exe -noexit -command Set-Location -literalPath '%V'
参考资料:https://blog.csdn.net/u010160146/article/details/143165385?fromshare=blogdetail&sharetype=blogdetail&sharerId=143165385&sharerefer=PC&sharesource=u010160146&sharefrom=from_link