您好,
感谢您在 Microsoft 社区论坛上发帖。
您遇到的错误与 PowerShell 中“System.Management.Automation.TypeAccelerators”的初始化有关。 出现此问题的原因有多种,例如 System.Management.Automation 3.0 中的 PowerShell DLL 中的堆栈溢出错误,或者计算机上安装的System.Management.Automation 版本存在问题。
以下是您可以尝试的一些潜在解决方案:
检查 PowerShell 和 System.Management.Automation 的版本:确保计算机上安装了正确且兼容的 PowerShell 和 System.Management.Automation 版本。
使用管理员权限运行 PowerShell:尝试使用提升的权限运行 Windows PowerShell 会话(以管理员身份运行)。
更新 Windows 和 PowerShell:如果问题与已知错误有关,安装 Windows 和 PowerShell 的最新更新可能会解决该问题。