Windows Powershell 报错 [启动“powershell.exe”时出现错误 0x8007010b]解决方案

目录

问题

最近刚装上了 Windows Powershell,之前运行都好好的,突然某一次就无法打开了,报错如下:
Windows Powershell 报错 [启动“powershell.exe”时出现错误 0x8007010b]解决方案

解决方案

看了网上的解决方案,大都是将 C:\Windows\System32\WindowsPowerShell\v1.0 添加到环境变量,然而我加完后没有任何变化…

重新看一下报错信息:无法访问目录 C:\Users\xxx|Desktop,感觉像是在启动Powershell时,找到了C:\Users路径下的某个文件里,但是我们的Powershell并没有安装在这里,所以无法启动!

  • 打开“设置”
    Windows Powershell 报错 [启动“powershell.exe”时出现错误 0x8007010b]解决方案
  • 左侧栏选择Windows PowerShell,我们可以发现启动目录的确是C:\Users…,点击“浏览”Windows Powershell 报错 [启动“powershell.exe”时出现错误 0x8007010b]解决方案
  • 将启动目录改成 C:\Windows\System32\WindowsPowerShell\v1.0,并保存 Windows Powershell 报错 [启动“powershell.exe”时出现错误 0x8007010b]解决方案
  • 关掉并再次打开PowerShell,就可以成功啦~
    Windows Powershell 报错 [启动“powershell.exe”时出现错误 0x8007010b]解决方案
上一篇:如何删除 Vue 创建项目的预设模板


下一篇:python从路径中获取文件名的三种方式