gpt4 book ai didi

windows - Powershell v2 在启动时崩溃

转载 作者:可可西里 更新时间:2023-11-01 11:29:18 25 4
gpt4 key购买 nike

我在 Windows XP SP3 机器上安装了 PowerShell v2,今天我打开 PowerShell 时它说:

The shell cannot be started. A failure occurred during initialization:
Object reference not set to an instance of an object.

Powershell 事件日志中的事件是:

Soruce: Powershell
Category: engine health
Event ID: 103

Settings: Object reference not set to an instance of an object.

Details:
ExceptionClass=NullReferenceException
ErrorCategory=
ErrorId=
ErrorMessage=Object reference not set to an instance of an object.

Severity=Error

SequenceNumber=

HostName=ConsoleHost
HostVersion=2.0
HostId=0fba5d45-885f-4f19-a354-4b390d5605bd
EngineVersion=2.0
RunspaceId=db9879d6-247a-40d7-9bfe-5bfd07a973f0
PipelineId=
CommandName=
CommandType=
ScriptName=
CommandPath=
CommandLine=

知道是什么原因造成的吗?它似乎是随机开始的。

最佳答案

This forum post似乎表明您的配置文件中缺少注册表项。

讨论摘录

After analyzing the Process Monitor log again, I find this error occurred if the following Registry key was missing:

HKEY_CURRENT_USER\Environment

最终用户重建了他的本地配置文件。

我还看到人们在 powershell 中运行以下命令取得了成功

Set-ExecutionPolicy RemoteSigned

关于windows - Powershell v2 在启动时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24875408/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com