简体   繁体   English

Powershell ISE 加载时崩溃

[英]Powershell ISE crash when loading

I have encountered an error when trying to launch Powershell ISE.尝试启动 Powershell ISE 时遇到错误。 The launch starts with 'Loading' displayed in the splash panel, then a dialog box comes up with "An unexpected error has occurred, and Windows PowerShell ISE must close" I have Googled this error and come up with nothing specific, but I have followed a few steps that have been suggested for fixing other issues.启动以启动面板中显示的“正在加载”开始,然后出现一个对话框,显示“发生意外错误,Windows PowerShell ISE 必须关闭”为解决其他问题而建议的一些步骤。

Platform: Windows 8.1 Pro

Powershell ISE product version: 10.0.14409.1005 

(Cannot open shell so cannot run cmdlet to get exect version details)

Things I have tried我尝试过的事情

1 The plain Powershell shell **does** launch.    
2 Tried launching ISE with -NoProfile & -MTA switches no luck    
3 Rename powershel_ise.exe.config so it cannot be read in both System32 & WOW64 folders    
4 Upgrade .NET Framework to 4.5.1    
5 Upgrade Management Framework to 5.1    
6 Other machines within our environment with same image and patch level have **not** encountered this problem    
7 Cannot find an associated error in the Event viewer logs

I really don't want to blow the machine away and start again so any suggestions or fix would be appreciated我真的不想把机器吹走并重新开始,所以任何建议或修复将不胜感激

Angus安格斯

I had the same issue, I was able to fix it with recreating my user profile. 我遇到了同样的问题,可以通过重新创建用户个人资料来解决此问题。

You can log as different user and try to run powershell_ise in that profile, if it runs, so more likely you can fix it. 您可以以其他用户身份登录,并尝试在该配置文件中运行powershell_ise(如果已运行),那么很有可能可以对其进行修复。 Just have somebody with admin rights delete your profile, and then just log back. 请具有管理员权限的人删除您的个人资料,然后重新登录。 Or if you have admin rights go create another account with admin, go to system properties / user profiles and remove your current profile ( just save files you need to keep) 或者,如果您具有管理员权限,请使用admin创建另一个帐户,转到系统属性/用户配置文件并删除当前配置文件(只保存需要保留的文件)

"I renamed the C:\\Users<name>\\Documents\\WindowsPowerShell directory and re-ran ISE and it didn't crash. Something up with that profile directory for me... – Duncan Smart Feb 10 '21 at 11:07" “我重命名了 C:\\Users<name>\\Documents\\WindowsPowerShell 目录并重新运行 ISE,但它没有崩溃。我的配置文件目录出了点问题...... – Duncan Smart 21 年 2 月 10 日 11:07 "

Solved my similar issue!解决了我的类似问题! :D :D

Go to Documents C:\Users<loggedinProfileName>\Documents\WindowsPowerShell and re name from WindowsPowerShell to Old_WindowsPowerShell it will work if its crashes because for user profile. Go 到 Documents C:\Users<loggedinProfileName>\Documents\WindowsPowerShell 并从 WindowsPowerShell 重命名为 Old_WindowsPowerShell 如果它因为用户配置文件而崩溃,它将起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM