[英]Can't use out-gridview since installing PowerGUI with Powershell V3
Just wondering if anyone seen this and knows a workaround. 只是想知道是否有人看到过这种情况,并且知道解决方法。
I'm Running Windows 7 64bit and just upgraded to Powershell V3. 我正在运行Windows 7 64位,并且刚刚升级到Powershell V3。 Since then, i can't use out-gridview commands.
从那时起,我无法使用out-gridview命令。 I get the following error.
我收到以下错误。
To use the Out-GridView cmdlet, install the Windows PowerShell Integrated Scripting Environment feature from Server Manager. 若要使用Out-GridView cmdlet,请从服务器管理器安装Windows PowerShell集成脚本环境功能。 (Could not load file or assembly ' Microsoft.PowerShell.GraphicalHost, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file sp ecified.)
(无法加载文件或程序集'Microsoft.PowerShell.GraphicalHost,版本= 1.0.0.0,区域性=中性,PublicKeyToken = 31bf3856ad364e35'或其依赖项之一。系统找不到指定的文件。)
I have opened the native MS ISE and can run out-gridview withgout error. 我已经打开了本机MS ISE,并且可以运行out-gridview withgout错误。
PowerGUI Script Editor launches using PowerShell v.2, even though you have PowerShell v.3 installed. 即使已安装PowerShell v.3,PowerGUI脚本编辑器也将使用PowerShell v.2启动。 Launching Script Editor with the "-version 3.0" option resolved this problem for me.
使用“ -version 3.0”选项启动脚本编辑器为我解决了此问题。
There are two things you can check: 您可以检查两件事:
PowerShell Integrated Scripting Environment (ISE)
. PowerShell Integrated Scripting Environment (ISE)
。 Microsoft .NET Framework v3.5 with Service Pack 1
installed also. Microsoft .NET Framework v3.5 with Service Pack 1
。 I fixed it by changing -Version 2.0 to -Version 3.0 我通过将-Version 2.0更改为-Version 3.0来修复它
Right click on Exchange Management shell and choose properties. 右键单击Exchange命令行管理程序,然后选择属性。 Find above in TARGET.
在TARGET中找到以上内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.