Powershell ISE 在启动时崩溃

标签 powershell windows-7 crash powershell-ise

不知道为什么,但今天我的工作站拒绝加载 Powershell ISE。我可以很好地加载 Powershell,并且我的 cmdlet 可以正常工作。我曾尝试加载 32 位和 64 位 ISE,但出于同样的原因都崩溃了。

这是崩溃转储:

Problem signature: Problem Event Name: PowerShell NameOfExe: PowerShell_ISE.exe FileVersionOfSystemManagementAutomation: 6.1.7600.16385 InnermostExceptionType: System.Xml.XmlException OutermostExceptionType: System.Reflection.TargetInvocation
DeepestPowerShellFrame: indows.PowerShell.GuiExe.Internal.GPowerShell.Main DeepestFrame: indows.PowerShell.GuiExe.Internal.GPowerShell.Main ThreadName: unknown OS Version: 6.1.7600.2.0.0.256.48 Locale ID: 1033

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline: C:\Windows\system32\en-US\erofflps.txt



我在谷歌上找不到关于这次崩溃的任何信息,所以我希望这里有人有一些指导。

最佳答案

这可能完全无关,但在我的情况下,当我查看 Process Monitor 时,我不太明白。为了确定导致崩溃的原因是 Windows 更新(我们的帮助台团队挑选的樱桃),破坏了我的 PowerShell ISE 启动,我还尝试在没有配置文件的情况下运行。使用 Powershell_ISE -NoProfile

我关注了 techcommunity线程并能够使用来自 dotnet github issue 的解决方案 #3 GlobalUserInterface.CompositeFont 解决我的问题

我所要做的就是下载 this font并在以下位置更新它,PowerShell ISE 是一个 WPF 应用程序,字体被 dotnet 升级损坏,作为 KB4074906 的一部分

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\WPF\Fonts 和 C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\Fonts

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

相关文章:

android - Android App无法运行,崩溃

ios - 未处理的异常 : Foundation. MonoTouchException:<超时获取异常详细信息>发生

powershell 中的 python 与 python CLI

powershell - 如何从 powershell 调用批处理以便我可以在 powershell 控制台中看到实时输出

windows-7 - 检测 Windows 关闭事件

Java 访问被拒绝

ios - 应用程序在苹果审核时崩溃,但在本地开发时不会崩溃

string - Powershell 字符串工作

powershell - 如何将多个值添加到区分大小写的Powershell哈希表?

windows-7 - Windows7 中的 "gdb.exe has stopped working "